You can rad a text file line-by-line using below code and writ your logic to read last word.
string line;
System.IO.StreamReader file =
new System.IO.StreamReader("c:\\test.txt");
while((line = file.ReadLine()) != null)
{
string lastWord = line.Split(' ').Last();
}
file.Close();
If you do not have LINQ or do not want to use, below is the code..
string[] parts = line.Split(' ');
string lastWord = parts[parts.Length - 1];