in reply to Re: reading/writing to a file
in thread reading/writing to a file

I agree that using Unix utilities is a good alternative for this problem, but note that

the lowliest monk