in reply to Re: Re: Writing to a file ??
in thread Writing to a file ??

Try looking at How do I flush/unbuffer an output filehandle? Why must I do this?. Your problem may be solved by flushing/unbuffering the file.

If the code and the comments disagree, then both are probably wrong. -- Norm Schryer