Larry says that the solution is to put a call to seek in yourself. First try
seek(GWFILE, 0, 1);
The statement seek(GWFILE, 0, 1); doesn't change the current position,
but it does clear the end-of-file condition on the handle, so that the
next
If that doesn't work (depends on your stdio implementation), then
you need something more like this:
for (;;) {
for ($curpos = tell(GWFILE); $_ =
Other resources at this site: