On Tue, Jul 22, 2008 at 04:10:03PM +0000, 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.
you mean a program like tail can't be written with pike because of this?
Would anybody complain if I add an extra (optional) argument to them to signal that they shouldn't zap the buffers at EOF?
is it possible to add this functionality by subclassing Stdio.FILE?
greetings, martin.