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

6 lines
167 B
Python
Raw Normal View History

2023-07-01 11:58:00 -04:00
#from __future__ import with_statement # is not needed in Python 3.6
with open(filename, 'r') as f:
for line in f:
pass # process line, includes newline