Mega Code Archive
Categories
/
Python
/
File
Loop through a file
f=open('/tmp/workfile') for line in f: print line, f.close()