如果我使用此代码
File.AppendAllText("C:/Users/Michael/Documents/Visual Studio 2010/Projects/PuzzleGame/PuzzleGame/PuzzleGameContent/player.TXT", "hi");
Run Code Online (Sandbox Code Playgroud)
该文件将保存并在其末尾添加"hi".但是,如果我做这样的事情:
File.AppendAllText("player.TXT", "what is good?");
Run Code Online (Sandbox Code Playgroud)
该文件没有"什么是好的?" 在它的最后.我只使用"player.TXT"文件名就能正常读取文件,但我不能只使用它来写入文件.谁能帮我?
c# ×1