Python - File Reading and Writing Strategies
What will be the output of this code snippet reading a file in fixed-size chunks?
with open('sample.txt', 'r') as f:
while True:
data = f.read(4)
if not data:
break
print(data, end='-')