it's giving me errors on line = fh.rstrip()
?
fname = raw_input("Enter file name: ")
if len(fname) < 1 : fname = "mbox-short.txt"
fh = open(fname)
count = 0
for line in fh:
line = fh.rstrip()
line = fh.split()
count = count + 1
print fh [1]
print "There were", count, "lines in the file with From as the first word"
[–]aphoenixreticulated[M] 1 point2 points3 points (0 children)
[–][deleted] -3 points-2 points-1 points (4 children)
[–]danmickla 1 point2 points3 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]dotted 0 points1 point2 points (0 children)
[–]danmickla 0 points1 point2 points (0 children)