I have test.txt file:
"hi there 1, 3, 4, 5"
When I use python to read it,how can I read it part by part for example first I read the first 4 character and then read the next 4 and then all of the left.
my code here:
with open(file, 'r', encoding='utf-8', errors='ignore') as f:
lines = f.read(4)
Use this code I can only read the first 4 character,any idea that I can ready each 4 characters in a loop until read all of them?