嗨,我正在尝试将文本保存到带有一些字符串的文本文件中,例如添加了学生姓名,但我有点卡住了
string iName2 = iName;
string text = "The student named {0} needs more work with plurals";
System.IO.File.WriteAllText(@"C:\Users\user\documents\visual studio 2012\Projects\Artificial_Intelligence_Project_3\WindowsFormsApplication1\Info.txt", text);`