openFile = open("sample.txt")
for line in openFile:
    line = line.rstrip()
    if not line.startswith("From "):
        continue
    words = line.split()
    #print type(words)
    print words[2]

Read data from file and split the data nad print
Read data from file and split the data nad print
