Print players name from a text file into a GUIText.text

Hi,
I am trying to print the player’s name onto the win screen after they win the game.
I have set up a script which takes the name that they input which saves it to a file called playerName.txt

My problem is that I can’t find out how to print the name within the file into a GUIText.
I am using C# and I am including “using System IO;”

If anyone can help me that would be great!!!

Are you married to that text file, do you need it for anything else? If not, see PlayerPrefs about SetString and GetString. Otherwise you should see the MSDN pages about System.IO and how to read a text file.