C#写入txt文本行
StreamWriter writer = new StreamWriter("C:\\aaa.txt");
writer.Write(string.Concat("aaa", Environment.NewLine));
writer.Write(string.Concat("bbb", Environment.NewLine));
writer.Close();
C#获取当前目录
System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase