in reply to How to read a file twice

Arghh... as (almost) always it was my fault. Of course just reopening the file resets the flags and also seek $fhi, 0, SEEK_SET; does work as intended. Thank you for your help.