所以我的问题是,如何保存已写入并输入到控制台的所有内容,并保存到文本文件中。
switch (y) {
case "Yes":
Console.WriteLine("\n");
Console.WriteLine("File Name: ");
string p = Console.ReadLine();
Console.WriteLine("\n");
GetYellow();
File.Create("");
Console.WriteLine("Please wait while we save your scan...");
Thread.Sleep(4000);
break;
case "No":
Console.WriteLine("Quitting...");
Thread.Sleep(4000);
Environment.Exit(2);
break;
} ```