f.read example 2

This commit is contained in:
Mert Gör 🇹🇷 2023-08-24 12:01:49 +03:00
parent 595bf74790
commit f6adb94839
No known key found for this signature in database
GPG Key ID: 2100A876D55B39B9

6
python-temel/f.read.2.py Normal file
View File

@ -0,0 +1,6 @@
with open('test.txt', 'r') as f:
while True:
s = f.read(5)
if s == '':
break
print(s, end='')