in reply to Re: Safe Counter
in thread Safe Counter

Yes. That is exactly what I do (and that's what I've learned from books) - that a file must first be opened and then flock can be called. If this is not the proper way of using flock, what is?