in reply to Weird file extraction problem

Hello Ni

Try using a text file containing the line This is the END - and you will observe that the words This is the won't be printed either. So you get the same weird result as with a .png-file.

The reason is that you process the file line-by-line - and don't print the line containing the word END.

HTH, Rata