That's because you only print once, at the end. Move the print inside the while loop if you want to print each line as it is processed.
Thanks for adding the <code> tags, but now your code is littered with <p> tags, etc. Can you remove those? It will make it much easier for us to read and understand. Update: thanks for sorting that.
In reply to Re^3: How can I print all lines?
by hippo
in thread How can I print all lines?
by 345qwerty
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |