I am trying to get a specific line in a text file which only has one word per line and copy it to a string. Can anyone give a simple example?

thanks