5 lines
135 B
Python
5 lines
135 B
Python
from __future__ import with_statement
|
|
|
|
with open(filename, 'r') as f:
|
|
for line in f:
|
|
pass # process line, includes newline
|