From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: How To Write A Record To File ?
Date: Fri, 8 Dec 2017 17:43:36 +0100
Date: 2017-12-08T17:43:36+01:00 [thread overview]
Message-ID: <p0effq$1lk2$1@gioia.aioe.org> (raw)
In-Reply-To: b8255ab8-8f54-48c1-9a43-db3e5eeb49c8@googlegroups.com
On 2017-12-08 17:04, patrick@spellingbeewinnars.org wrote:
> Is there a way to do this, perhaps another library?
Yes.
1. Don't use Sequential_IO, use Stream_IO.
2. Don't use end of file test, it is not Ada's way, and no way for many
types of files. End_Error is the safest, cleanest and most efficient
method to handle file end.
3. For reading legacy files implement stream attributes of components to
be conform with the format of the file.
(In general, avoid default implementation of stream attributes when
dealing with external files or protocols)
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2017-12-08 16:43 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-08 16:04 How To Write A Record To File ? patrick
2017-12-08 16:25 ` AdaMagica
2017-12-08 16:40 ` patrick
2017-12-08 16:41 ` patrick
2017-12-08 16:57 ` Anh Vo
2017-12-08 17:11 ` Anh Vo
2017-12-08 17:29 ` patrick
2017-12-08 16:43 ` Dmitry A. Kazakov [this message]
2017-12-08 16:53 ` patrick
2017-12-08 17:35 ` Dennis Lee Bieber
2017-12-08 18:01 ` Simon Wright
2017-12-08 23:06 ` patrick
2017-12-08 23:06 ` Victor Porton
2017-12-08 23:28 ` Simon Wright
2017-12-08 23:31 ` patrick
2017-12-09 8:03 ` Usenet (Was: How To Write A Record To File ?) Jacob Sparre Andersen
2017-12-09 9:08 ` Usenet Simon Wright
2017-12-09 14:38 ` Usenet Björn Lundin
2017-12-09 11:34 ` How To Write A Record To File ? Spiros Bousbouras
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox