http://qs321.pair.com?node_id=384637


in reply to print vs push?

You need to reset the file pointer to BOF before reading in COMP. You can do that with seek (if you opened the file in read/write mode to begin with), or closed and re-opened the file in read mode. L