decd597273
A file cannot be iterated concurrently, so we make io.FileIO its own iterator.
4 lines
51 B
Python
4 lines
51 B
Python
f = open("io/data/file1")
|
|
for l in f:
|
|
print(l)
|