private static void CreateFile() { using (StreamWriter sw = File.CreateText()) { string textToBeSaved = ""; textToBeSaved += BoardGame.GetTextBoardPositions(); textToBeSaved += BoardGame.GetTextPiecesPlayer1(); textToBeSaved += BoardGame.GetTextPiecesPlayer2(); textToBeSaved += BoardGame.GetTextCurrentPlayer(); textToBeSaved += BoardGame.GetTextMills(); sw.Write(textToBeSaved); } }