[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 ?



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



begin:vcard
n:Galicinao ;Emil Jr
tel;work:Phone (632) 8078455 ext 120
x-mozilla-html:FALSE
org:Motorola Communications Philippines Inc.;Regional Development Center
version:2.1
title:Systems Analyst/Programmer
adr;quoted-printable:;;9/F Alabang Businness tower=0D=0A1216 Acacia Ave.,Madrigal Business Park=0D=0AAyala Alabang;Muntinlupa City;;1780;Philippines
fn:Emilio S. Galicinao Jr
end:vcard