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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,87f589d0052c40b3 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-30 06:10:04 PST Path: archiver1.google.com!news2.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.vmunix.org!newsfeed.stueberl.de!teaser.fr!oleane.net!oleane!nnrp.oleane.net!skymaster!nobody From: "Jean-Pierre Rosen" Newsgroups: comp.lang.ada Subject: Re: procedure Create(file : in out File_Type; from : in Stream_Access); ? Date: Tue, 30 Sep 2003 14:34:18 +0200 Organization: Adalog Message-ID: <3dtblb.eoc.ln@skymaster> References: NNTP-Posting-Host: mailhost.axlog.fr X-Trace: s1.read.news.oleane.net 1064927171 10009 195.25.228.57 (30 Sep 2003 13:06:11 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Tue, 30 Sep 2003 13:06:11 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Xref: archiver1.google.com comp.lang.ada:12 Date: 2003-09-30T14:34:18+02:00 List-Id: "Lutz Donnerhacke" a �crit dans le message de news:slrnbnh205.dsr.lutz@belenus.iks-jena.de... > * Stephen Leake wrote: > > Lutz Donnerhacke writes: > >> Knows anybody out there a way to create a File_Type (for Ada.Text_IO) from a > >> Ada.Streams.Root_Type derivate? > > > > I don't see how this would be possible; a stream may not be a file (it > > may be a socket or just memory, for example). > > All my programs does read data sequentially from a file/stream. So I use as > file as a stream. That's why, I'd like to handle a Stream with the common > Text_IO functions. > Did you notice Ada.Text_IO.Text_Streams (A.12.2) ? -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr