python-CSD-kursu/python-temel/f.read.2.py
2023-08-24 12:01:49 +03:00

7 lines
134 B
Python

with open('test.txt', 'r') as f:
while True:
s = f.read(5)
if s == '':
break
print(s, end='')