From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6482d0ae6dcb1b4c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-09-22 04:26:38 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!intgwpad.nntp.telstra.net!news.telstra.net!news-server.bigpond.net.au!not-for-mail From: Dale Stanbrough Newsgroups: comp.lang.ada Subject: Re: if file exist Organization: RMIT References: User-Agent: MT-NewsWatcher/3.2 (PPC Mac OS X) Message-ID: Date: Sun, 22 Sep 2002 11:26:36 GMT NNTP-Posting-Host: 144.132.47.50 X-Complaints-To: news@bigpond.net.au X-Trace: news-server.bigpond.net.au 1032693996 144.132.47.50 (Sun, 22 Sep 2002 21:26:36 EST) NNTP-Posting-Date: Sun, 22 Sep 2002 21:26:36 EST Xref: archiver1.google.com comp.lang.ada:29250 Date: 2002-09-22T11:26:36+00:00 List-Id: In article , "Dominic D'Apice" wrote: > Hello all, > > How can i know if a text file exist ? > > I mean : > > Procedure IF_FILE_EXIST is > Begin > . > end IF_FILE_EXIST; Ask the operating system? Another way is to attempt to open the file. If it opens successfully then it exists. BTW you may have a problem as after you get the answer the file may have been created/no longer exist. This will of course depend on your environment. Dale