dont i check EOF at the beginning of the while loop though, surely all the data would have been read by then

i'm a bit unsure at this EOF

any chance at elaborating a bit more please