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 15:29:21 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!nntp-server.caltech.edu!attla2!ip.att.net!attbi_feed3!attbi_feed4!attbi.com!sccrnsc02.POSTED!not-for-mail From: "SteveD" Newsgroups: comp.lang.ada References: Subject: Re: if file exist X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: NNTP-Posting-Host: 12.225.227.101 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc02 1032733750 12.225.227.101 (Sun, 22 Sep 2002 22:29:10 GMT) NNTP-Posting-Date: Sun, 22 Sep 2002 22:29:10 GMT Organization: AT&T Broadband Date: Sun, 22 Sep 2002 22:29:10 GMT Xref: archiver1.google.com comp.lang.ada:29267 Date: 2002-09-22T22:29:10+00:00 List-Id: >"Dominic D'Apice" wrote in message >news:mailman.1032687678.1150.comp.lang.ada@ada.eu.org... >Hello all, > >How can i know if a text file exist ? > >I mean : > >Procedure IF_FILE_EXIST is >Begin >. >end IF_FILE_EXIST; > How about something along the lines of: Pseudo code: Procedure IF_FILE_EXIST is begin open the existing file close the file return true; exception when the exception occurs that is associated with a file not present => return false; end IF_FILE_EXIST; I hope this helps (I hope it works too!) SteveD >thank in advance >Dominic