circuitpython/tests/io/file-iter.py
Paul Sokolovsky decd597273 unix io.FileIO: Add iteration support.
A file cannot be iterated concurrently, so we make io.FileIO its own
iterator.
2014-01-20 18:42:08 +02:00

4 lines
51 B
Python

f = open("io/data/file1")
for l in f:
print(l)