Maybe this will help you:
filename='name.txt'
fh = open(filename, 'r')
line = open(filename).read().splitlines()
for ln in line:
print ln
"""
My output:
Neuman, Alfred E.
Stevenson, Robert Lewis
Lewis, C.S.
Doe, Jane
Bush, George Herbert Walker
"""
It should handle middle names with no problem, I guess...:D
Lucaci Andrew
Practically a Master Poster
649 posts since Jan 2012
Reputation Points: 91
Solved Threads: 91
Skill Endorsements: 12
Question Answered as of 1 Year Ago by
ihatehippies
and
Lucaci Andrew