comp.lang.ada
 help / color / mirror / Atom feed
From: "J-P. Rosen" <rosen@adalog.fr>
Subject: Re: quiz for Sequential_IO Read
Date: Sun, 3 Sep 2017 19:28:14 +0200
Date: 2017-09-03T19:28:14+02:00	[thread overview]
Message-ID: <oohdr9$qm0$1@dont-email.me> (raw)
In-Reply-To: <oogne5$94b$1@newsreader4.netcologne.de>

Le 03/09/2017 à 13:01, Frank Buss a écrit :
> The content of test.txt is just the ASCII string "hello":
If it is a text file, it is not appropriate for Sequential_IO which
requires a binary file.

In every language, the format of a binary file is known only to the
compiler (I remember having been warned about this when I learned
FORTRAN - a long time ago); the purpose of these files is to save data,
then reread them from the same program, or at least the same language
with the same compiler.

It may happen that the compiler just outputs the raw binary
representation, but you have absolutely no guarantee about that.

-- 
J-P. Rosen
Adalog
2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX
Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00
http://www.adalog.fr


  parent reply	other threads:[~2017-09-03 17:28 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-03 11:01 quiz for Sequential_IO Read Frank Buss
2017-09-03 11:40 ` Jeffrey R. Carter
2017-09-03 12:47   ` Frank Buss
2017-09-03 13:44     ` Jeffrey R. Carter
2017-09-03 15:38       ` AdaMagica
2017-09-03 12:26 ` Dmitry A. Kazakov
2017-09-03 12:43   ` Frank Buss
2017-09-03 13:11     ` Dmitry A. Kazakov
2017-09-04 19:58       ` Frank Buss
2017-09-04 20:55         ` Dmitry A. Kazakov
2017-09-04 21:51           ` Frank Buss
2017-09-05  1:54             ` Dennis Lee Bieber
2017-09-03 17:28 ` J-P. Rosen [this message]
2017-09-03 20:10   ` Frank Buss
2017-09-04  5:12     ` J-P. Rosen
2017-09-04  7:37     ` Dmitry A. Kazakov
2017-09-03 20:17   ` Dennis Lee Bieber
2017-09-04  5:14     ` J-P. Rosen
replies disabled

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