From: Sebastian Hungerecker Date: 2008-10-30T09:24:50+09:00 Subject: Re: Question concerning ruby file access Stefan Salewski wrote: > But how do I test in this notation that the file with name "testfile" > really exits (and opening was successful). In an multi-tasking > environment another process may delete the file just before this > statement is executed. If you want to completely avoid race conditions, you don't check - you just do and then recover from eventual errors (i.e. you rescue the exception). HTH, Sebastian -- Jabber: sepp2k@jabber.org ICQ: 205544826