[C#] C#一次性写入全部文件到文件 →→→→→进入此内容的聊天室

来自 , 2020-04-05, 写在 C#, 查看 96 次.
URL http://www.code666.cn/view/bd470ca9
  1. using System;
  2. namespace PlayingAround {
  3.     class ReadAll {
  4.         public static void Main(string[] args) {
  5.             string myText = "Line1" + Environment.NewLine + "Line2" + Environment.NewLine;
  6.             System.IO.File.WriteAllText(@"C:\t2", myText);
  7.         }
  8.     }
  9. }
  10. //csharp/4812

回复 "C#一次性写入全部文件到文件"

这儿你可以回复上面这条便签

captcha