C# 文件写

<textarea cols="50" rows="15" name="code" class="c-sharp">FileStream fs = new FileStream(&quot;D:/temp/result.txt&quot;, FileMode.Create); StreamWriter sw = new StreamWriter(fs); sw.WriteLine(item); </textarea>

你可能感兴趣的:(C# 文件写)