using System;using System.IO;namespace IO操作{ class Program { static void Main(string[] args) { using(StreamWriter w=File.AppendText("IO.txt")) { TextIn("Hello GeoStorm", w); TextIn("Hello World",w); w.Close(); } } public static void TextIn(string content, TextWriter w) { w.Write("\r\n message:"); w.WriteLine("{0}",content); w.Flush(); } }}
详细解决方案
C#文件写下操作
热度:55 发布时间:2016-05-05 03:29:26.0
相关解决方案