📜  streamwriter 附加文本 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:45.139000             🧑  作者: Mango

代码示例3
using (FileStream fs = new FileStream(fileName,FileMode.Append, FileAccess.Write))
 using (StreamWriter sw = new StreamWriter(fs))
 {
    sw.WriteLine(something);
 }