py, stream: Implement readlines for a stream.

This commit is contained in:
Damien George
2014-05-03 22:01:32 +01:00
parent 5320bff32c
commit d5f5b2f766
6 changed files with 30 additions and 12 deletions

View File

@@ -2,3 +2,5 @@ f = open("io/data/file1")
print(f.read(5))
print(f.readline())
print(f.read())
f = open("io/data/file1")
print(f.readlines())