in reply to Strange problem reading a text file
When using formats, don't you have to use the write command instead of print?