string path = Application.StartupPath + "\\" + "timeLenth.txt";

            FileStream fs1 = new FileStream(path, FileMode.Create, FileAccess.Write);//搜索创建写入文件 
            StreamWriter sw = new StreamWriter(fs1);
           
                sw.Write("Content no other line");
                sw.Write("   ");
                sw.WriteLine("huanHang");
            
            sw.Close();
            fs1.Close();

            System.Diagnostics.ProcessStartInfo info = new System.Diagnostics.ProcessStartInfo();
            info.FileName = path;
            System.Diagnostics.Process.Start(info);

 

 

相关文章:

  • 2021-11-27
  • 2022-12-23
  • 2021-10-18
  • 2021-08-08
  • 2022-12-23
  • 2022-02-18
  • 2021-08-01
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-07
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2021-07-06
相关资源
相似解决方案