finding ....
David Sankel
camio@yahoo.com
Tue, 19 Mar 2002 18:37:34 -0800 (PST)
--- Pixel <pixel@mandrakesoft.com> wrote:
> Lennart Augustsson <lennart@augustsson.net> writes:
>
> > > Diego Yanivello wrote:
> > >
> > > > hi, is there (in Haskell) a function like
> existFile :: FilePath ->
> > > > IO (Bool) ? Thanks!
> >
> > Using such a function is generally a bad idea
> because of race conditions.
>
> however, real world programs use those tests since
> you don't need to care
> *everytime* about race conditions. (of course using
> this existFile before
> creating a temporary file is wrong, but existFile
> has *many* other
> applications)
Could someone post an example of the creation of a
temporary file where race conditions are important?
Thanks,
David J. Sankel
__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/