"Wijaya Edward" wrote: > I mean while opening a file, like this > > for line in open('somefile.txt'): > print line > > printing "line" will not show the hidden chars like "\n","\r". > Is there a way to print it out?
print repr(line) </F> -- http://mail.python.org/mailman/listinfo/python-list