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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable 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 07:11:10 PST Path: news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!usenet-fr.net!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: sk Newsgroups: comp.lang.ada Subject: Re: procedure Create(file : in out File_Type; from : in Stream_Access); ? Date: Mon, 29 Sep 2003 09:11:19 -0500 Organization: Cuivre, Argent, Or Message-ID: References: NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: melchior.cuivre.fr.eu.org 1064844339 37594 80.67.180.195 (29 Sep 2003 14:05:39 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Mon, 29 Sep 2003 14:05:39 +0000 (UTC) To: comp.lang.ada@ada-france.org Return-Path: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020828 X-Accept-Language: en-us, en X-Virus-Scanned: by amavisd-new-20030616-p5 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Gateway to the comp.lang.ada Usenet newsgroup List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: news1.google.com comp.lang.ada:161 Date: 2003-09-29T09:11:19-05:00 lutz@iks-jena.de: > Knows anybody out there a way to create a File_Type (for > Ada.Text_IO) from a Ada.Streams.Root_Type derivate? Without knowing exactly what you are aiming at : 1) Cut'n'paste File_Type into your code; manually hook the stream in; UC it into and Ada.Text_Io file type. 2) If possible (using GNAT 3.15p packages) try using the package Ada.Text_Io.C_Streams which can hook up a "C" style stream to an Ada.Text_Io.File_Type. Not much help, but I vaguely recall that the 2nd method (Ada.Text_Io.C_Streams.Open) can be very useful in that one can use Text_Io to do the parsing instead of having to reimplement parsers to look for "CRLF" or "LF" etc for oneself. -- ------------------------------------------------- -- Merge vertically for real address -- -- s n p @ t . o -- k i e k c c m -------------------------------------------------