Would this work on all platforms? i know windows does \r\n, and remember hearing mac does \r while linux did \n. I ran this code on windows so it seems fine, but do any of you know if its cross platform?
while 1:
line = f.readline()
if line == "":
break
line = line[:-1]
print "\"" + line + "\""