comp.lang.ada
 help / color / mirror / Atom feed
From: sk <noname@myob.com>
To: comp.lang.ada@ada-france.org
Subject: Re: procedure Create(file : in out File_Type; from : in Stream_Access); ?
Date: Mon, 29 Sep 2003 09:11:19 -0500
Date: 2003-09-29T09:11:19-05:00	[thread overview]
Message-ID: <mailman.11.1064844338.25614.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: slrnbnfs9o.nr.lutz@taranis.iks-jena.de

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
-------------------------------------------------




  reply	other threads:[~2003-09-29 14:11 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-29  8:45 procedure Create(file : in out File_Type; from : in Stream_Access); ? Lutz Donnerhacke
2003-09-29 14:11 ` sk [this message]
2003-09-29 14:21   ` Lutz Donnerhacke
2003-09-29 16:36     ` sk
2003-09-29 15:14 ` Stephen Leake
2003-09-29 19:29   ` Lutz Donnerhacke
2003-09-30 12:34     ` Jean-Pierre Rosen
2003-09-30 13:27       ` Lutz Donnerhacke
2003-09-30 14:24         ` Jean-Pierre Rosen
2003-10-01  0:10           ` sk
2003-10-01  7:34             ` Jean-Pierre Rosen
2003-10-01 12:32               ` Lutz Donnerhacke
2003-10-01 11:19 ` sk
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox