I have a file with multiple lines and right now I read 20480 bytes at once:
while True:
data = fh.read(20480)
if data == '':
fh.close()
break
I have another file where ETX is used as the delimiter. How do I read characters till ETX is reached?
Thanks in advance!