comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: GNAT: Handling of textfile end-of-page
Date: 1997/06/20
Date: 1997-06-20T00:00:00+00:00	[thread overview]
Message-ID: <dewar.866853528@merv> (raw)
In-Reply-To: 199706191345.PAA25243@basement.replay.com


Jeff Carter says

<<Try instantiating Sequential_Io for type Character:
 
  package Character_Io is new Ada.Sequential_Io (Character);
 
and reading the file with this. You should be able to read the FF
characters OK.>>

A far too heavy Ada 83 solution that is by no means guaranteed to work
in any case, since there is no assurance that sequential IO will use
compatible formats (for example it might pad every record to four characters)

The proper solutoin in Ada 95 is to use Stream_IO.





      reply	other threads:[~1997-06-20  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-06-18  0:00 GNAT: Handling of textfile end-of-page Jakob Heinemann
1997-06-19  0:00 ` Anonymous
1997-06-20  0:00   ` Robert Dewar [this message]
replies disabled

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