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,87f589d0052c40b3 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-29 12:29:10 PST Path: news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!freenix!skynet.be!skynet.be!newsgate.cistron.nl!news.cambrium.nl!news.cambrium.nl!news.cambrium.nl!news2.euro.net!newsfeed.vmunix.org!news-FFM2.ecrc.net!news.iks-jena.de!not-for-mail From: Lutz Donnerhacke Newsgroups: comp.lang.ada Subject: Re: procedure Create(file : in out File_Type; from : in Stream_Access); ? Date: Mon, 29 Sep 2003 19:29:09 +0000 (UTC) Organization: IKS GmbH Jena Message-ID: References: NNTP-Posting-Host: belenus.iks-jena.de X-Trace: branwen.iks-jena.de 1064863749 12591 217.17.192.34 (29 Sep 2003 19:29:09 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Mon, 29 Sep 2003 19:29:09 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: news1.google.com comp.lang.ada:198 Date: 2003-09-29T19:29:09+00:00 List-Id: * 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. > Why do you want to do this? Perhaps there is another way ... Sure. I can rewrite 'Read and 'Write.