Re: How check for "path/file exists"?
Skoda,
Thanks, that's close to what I did, except I didn't put it into a function,
just put it directely in the code since I only used it once.
Dan
----- Original Message -----
From: "Skoda" <tone.skoda at SIOL.NET>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Monday, September 04, 2000 2:17 AM
Subject: Re: How check for "path/file exists"?
> --returns 1 if file exists, 0 if it doesn't
> global function file_exists(sequence fpath)
> integer a
> a=open(fpath,"r")
> if a=-1 then
> --not found
> a=0
> else
> --found
> close(a)
> a=1
> end if
> return a
> end function
|
Not Categorized, Please Help
|
|