comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: End_Of_Line, End_Of_File
Date: 1996/12/02
Date: 1996-12-02T00:00:00+00:00	[thread overview]
Message-ID: <dewar.849533874@merv> (raw)
In-Reply-To: Pine.SUN.3.95.961202104027.355A-100000@tsc4


Fernando says

"I've solved the problem using instantiating Sequential_IO fot character
type and looking for chacarcter.latin_1.lf
"

Yes, you can do this, but it is likely to be gruesomely inefficient. It
is much better to use Stream_IO, reading a decent chunk of data at a time.
In addition, there is no guarantee that instantiation Sequential_IO will
work, nowhere in the RM does it guarantee anything about the format of
sequential_io files, and if they happen to correspond to some externally
written file, as opposed to a file written by sequential_io, that's good
luck, but cannot be counted on.

In practice, with almost all (all?) implementations of Ada, this 
particular instantiation of sequential_io will "work", but it is still
a poor way of doing things!





  reply	other threads:[~1996-12-02  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-11-30  0:00 End_Of_Line, End_Of_File Fernando Tricas
1996-11-30  0:00 ` Robert Dewar
1996-12-02  0:00   ` Fernando Tricas
1996-12-02  0:00     ` Robert Dewar [this message]
1996-12-10  0:00   ` Robert I. Eachus
1996-12-02  0:00 ` Peter Amey
1996-12-02  0:00   ` Robert Dewar
replies disabled

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