in reply to Re: Re: file testing is hard
in thread file testing is hard

Can you not just try to open it and see if you get an error? The only tricky part is making sure you don't allow a race condition (e.g. if the file is not there, then opening it with "+>"; but having another process create it inbetween the if and then parts).

Update: s/is there/is not there/