111,097
社区成员




StreamWriter sw = new StreamWriter(@"D:\AA学习\并行计算\project\test.txt");
for (int i = 0; i < array.Count; i++)
{
sw.Write(array[i].ToString() + ' ');
}
Console.WriteLine("写完毕");
Console.ReadKey();
using (StreamWriter sw = new StreamWriter(path, true, System.Text.Encoding.Default))
{
sw.WriteLine(str);
sw.Flush();
sw.Close();
}