the following construction fails:
assign(ip,'input_file'); reset(ip);
repeat readln(ip,...... until eof(ip);
reset(ip); { <<<< This is the point where the shit hits the fan... }
In GPC you need to close the file before calling reset/rewrite again. Add the statement 'close(ip)' before the second reset, and everything should work.
I think it is legal. (It is surely OK under TP.)
This issue has been raised before on the mailing list, but I am not sure whether it is bug or a feature.....
Jesper Lund