2013年9月26日 星期四

C# 文字 寫入 TXT

        StreamWriter sw = new StreamWriter(@"C:\Users\cody\Documents\1.txt");
        sw.WriteLine("abc");
        sw.Close();

記得先創好檔案路徑

還有要

Using System.IO;

沒有留言:

張貼留言