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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.50.20.227 with SMTP id q3mr19781996ige.11.1445935890155; Tue, 27 Oct 2015 01:51:30 -0700 (PDT) X-Received: by 10.182.50.225 with SMTP id f1mr444167obo.11.1445935890137; Tue, 27 Oct 2015 01:51:30 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!kq10no30576849igb.0!news-out.google.com!z4ni37706ign.0!nntp.google.com!kq10no30576839igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 27 Oct 2015 01:51:29 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=82.243.252.139; posting-account=zd4fUAoAAABZGnAfDxrdJ5Lpts-qUilv NNTP-Posting-Host: 82.243.252.139 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <8508dafc-5fea-4e5d-992f-8fe48f5d9df6@googlegroups.com> Subject: Re: function Is_Open (File : File_Type) return Boolean; :Text_io From: comicfanzine@gmail.com Injection-Date: Tue, 27 Oct 2015 08:51:30 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:28068 Date: 2015-10-27T01:51:29-07:00 List-Id: Le lundi 26 octobre 2015 12:27:53 UTC+1, Simon Wright a =E9crit=A0: > comicfanzine@gmail.com writes: >=20 > > Can someone please show my a code in which this function is used , i'm > > lost , thanks . >=20 > You could try googling ; finds > http://homepage.ntlworld.com/phil.brooke/topal/hg/topal/misc.adb as the > 5th or 6th hit. >=20 > Or you could help us to help you by showing us how far you've got > already; "i'm lost" isn't informative. Thanks everybody , here is the code with corrections : [code]WITH Ada.Text_IO ; USE Ada.Text_IO ;=20 PROCEDURE TestFichier IS MonFichier : File_type ;=20 =20 BEGIN=20 Create( MonFichier,Name =3D> "clone.adb"); if Is_Open (MonFichier) then Put (Item =3D> "Le fichier , ouvert ? : ", File =3D> MonFichier); end if; END TestFichier ;[/code] The code compile but you don't understand what i wan t to do . I want to cr= eate a file (the use of the create procedure will erase+remplace it if he a= lready exist ) , then use IS_open to have a output in comand that say(fonct= ion put) for exemple : "the file have been opened successfuly , value : tru= e " (i repeate , i want to put the Value of IS_open : should be true ).