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 the code below not to overwrite the file but add the punctuation below the points already recorded. C # Visual Studio Community 2017.
varexe = System.Environment.CurrentDirectory;
StreamWriter writer = new StreamWriter(varexe + "\Score.txt");
writer.WriteLine("Player1");
writer.WriteLine(tent);
writer.Close();