comp.lang.ada
 help / color / mirror / Atom feed
From: sk <noname@myob.com>
Subject: Re: reading from a file
Date: Mon, 25 Feb 2002 14:46:51 -0600
Date: 2002-02-25T14:46:51-06:00	[thread overview]
Message-ID: <mailman.1014670022.1920.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: Z9xe8.3962$R16.717197@news11-gui.server.ntli.net

Hi,

>F is defined as 'text_io.file_type'
>
>i am using Sequentional_io
>
>and the file is open
>
>regards,
>deepie

Use Text_Io functions (Get_Line, Skip_Line etc) on 
"Text_Io.File_Type"

Use Sequential_Io functions on "Sequential_Io.File_Type"

If you really (**REALLY**) need to access text files
sequentially and access sequential files as text, you 
will probably need to use the various Stream abilities.

Ada.Streams;
Ada.Streams.Stream_Io;
Ada.Text_Io.Text_Streams (??? - check actual package name).
...

You also need to watch out for the mode you use to "Open"
a file. Reading from an output file, writing to an input
file, for examples, will bite you.

-------------------------------------
-- Merge vertically for real address
-------------------------------------
s n p @ t . o
 k i e k c c m
------------------------------------



  reply	other threads:[~2002-02-25 20:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-25 17:08 reading from a file Deepie
2002-02-25 17:23 ` John McCabe
2002-02-25 20:30   ` Deepie
2002-02-25 20:46     ` sk [this message]
2002-02-26  9:20       ` John McCabe
2002-02-27  2:45 ` Wannabe h4x0r
2002-02-28 17:25   ` Deepie
replies disabled

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