Is there a way to iterate through a text file using the syntax,
with open(filename,\'r\') as f: for line in f: print f
if the file only c
You can use open(filename, 'rU').
open(filename, 'rU')