[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: how to check whether the file exists or not ?



thanks  Emil for ur help
chandru

----- Original Message -----
From: Emil Galicinao <e.galicinao@MOTOROLA.COM>
To: <SQR-USERS@list.iex.net>
Sent: Wednesday, March 07, 2001 3:39 PM
Subject: Re: how to check whether the file exists or not ?


> Hi Chandru
>
> You can try something like this:
>
> let #fstatus = exists($xls_file)
>
>   if #fstatus = 0
>     {codes to open the file  (0 means the file exist)}
>
> Where:
> $xls_file = filename
>
> --
> Best Regards,
> Emil
> RDC
>
>
> "Chandrashekhar.A.M" wrote:
>
> > hi gurus,
> >     can anybody tell me  how to check whether a file exists or not?
> > what i am doing is , i want to open a file for reading if the file
exists.
> > now it is giveing error when i am going to open the file because it is
> > not there.
> >     thanks in advance
> > chandru
>
>
>
>