RosettaCodeData/Task/Input-loop/Python/input-loop-2.py

6 lines
135 B
Python
Raw Normal View History

2013-04-10 21:29:02 -07:00
from __future__ import with_statement
with open(filename, 'r') as f:
for line in f:
pass # process line, includes newline