in reply to Re: Useless Program
in thread Useless Program

Should you be holding a file lock around user input? I was always taught to lock a file only when you aren't potentially waiting the for the user to type something. Perhaps the FLOCK should be moved to right before the WHILE loop (and perhaps you only want to lock it when you know you need to write to it .. in that case, move the FLOCK to precede the 'print FILE' statment).