Henrik Grubbstr?m (Lysator) @ Pike (-) developers forum wrote:
I considered using Stdio.FILE for monitoring a logfile today, but I noticed that gets() (and ngets()) destroy their states when they reach EOF. Would anybody complain if I add an extra (optional) argument to them to signal that they shouldn't zap the buffers at EOF?
Excuse me for asking, but what do you need the state for?
Basically, all that's needed is that a seek() resets the state into something that can be used.