static void Main(string[] args) { th = new TextImpl(); while (true) { th.showMenu(); string s = Console.ReadLine(); switch (s) { case "1": { text = new Text(); th.write(text); th.SaveFile(text.Content, text.Saveroute + "/" + text.Name); break; } case "2": { text = new Text(); Console.WriteLine("请输入打开文件路径:"); String op = Console.ReadLine(); text = th.OpenFile(op); Console.WriteLine("笔记内容:\n" + text.Content); break; } case "3": { break; } } } }