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.66.182.135 with SMTP id ee7mr16013738pac.32.1445866101494; Mon, 26 Oct 2015 06:28:21 -0700 (PDT) X-Received: by 10.182.158.104 with SMTP id wt8mr384021obb.7.1445866101422; Mon, 26 Oct 2015 06:28:21 -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!kq10no29783307igb.0!news-out.google.com!z4ni36854ign.0!nntp.google.com!kq10no24820002igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 26 Oct 2015 06:28:21 -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: <47854913-2149-4855-959e-e83b3dc71fa8@googlegroups.com> Subject: Re: function Is_Open (File : File_Type) return Boolean; :Text_io From: comicfanzine@gmail.com Injection-Date: Mon, 26 Oct 2015 13:28:21 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:28054 Date: 2015-10-26T06:28:21-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 fot link . I want to create+open a file then use Is_Open , if the file have been creat= e i want to put some text + the value of Is_Open(should be TRUE) . There is french in the code : [code]WITH Ada.Text_IO ; USE Ada.Text_IO ; PROCEDURE TestFichier IS MonFichier : File_type ; =20 BEGIN Create( MonFichier,Name =3D> "clone.adb"); open(MonFichier,In_file,"clone.adb") ; if Is_Open(MonFichier) and MonFichier =3D true then put("Le fichier , ouvert ? : ",MonFichier); end if; END TestFichier ;[/code]