C# 與檔案處理 - 免費電子書:C# 程式設計
using System; using System.IO; class FileTest { public static void Main(String[] args) { String text1 = "Hello, C#!"; String file = "Hello.txt"; textToFile(file, text1); String text2 = fileToText(file); Console.WriteLine(text2); } public static ......