0
The command written below does not create the score text. txt in the directory of the folder where the game is installed I also needed that the code below not overwrite the file but add the score below the already recorded points. C# Visual Studio Community 2017.
varexe = System.Environment.CurrentDirectory;
StreamWriter writer = new StreamWriter(varexe + "\\Score.txt");
writer.WriteLine("Player1");
writer.WriteLine(tent);
writer.Close();