Re: Existence
- Posted by Kat <gertie at PELL.NET> Mar 29, 2002
- 349 views
On 29 Mar 2002, at 22:52, Robsz2 at aol.com wrote: > > --part1_3f.90c8408.29d69088_boundary > Content-Type: text/html; charset="US-ASCII" > Content-Transfer-Encoding: 7bit > > <HTML> > <PRE>============ The Euphoria Mailing List ============ > </PRE> > > <FONT FACE=arial,helvetica><FONT SIZE=2>Hello. > <BR> > <BR> A quick question: > <BR> > <BR> > How > do I check the existence of a file?</FONT> Either try to open it with open(), or read the directory with dir() to see if it is there. If it isn't there, open() will give an error. If it isn't there, dir() won't list it. Kat