comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: questions on input/output
Date: Sat, 6 Feb 2021 12:47:06 +0100	[thread overview]
Message-ID: <rvlvjo$17l5$1@gioia.aioe.org> (raw)
In-Reply-To: b5961929-db4d-4228-bedd-58ddd0b0d108n@googlegroups.com

On 2021-02-06 11:38, AdaMagica wrote:
> Dmitry A. Kazakov schrieb am Samstag, 6. Februar 2021 um 10:36:08 UTC+1:
>> On 2021-02-05 23:50, Mehdi Saada wrote:
>>
>>> I need: to read a character, until some marker, then go back (set_col(stored_position)) and read again but store it like Get(variable, FILE); then go past the marker (set_col(FILE,col(file)+1)).
>> Do not do it, bad idea anyway. The esoteric features of Text_IO like
>> columns etc are not portable. Use Stream_IO instead.
> 
> What do you mean by "not portable"?

Because it is unlikely that things would work same for same files on 
different OSes. It was OK in 1983 when you never moved files from OS to 
OS and if you did, you always converted text files. These days text 
files are never converted. So the safe way is to ignore whatever 
conventions which are never enforced anyway and do raw Stream_IO 
handling occasional vertical formatting ASCII characters manually, 
better removing or ignoring them and never rely on their semantics.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

      parent reply	other threads:[~2021-02-06 11:47 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-05 22:50 questions on input/output Mehdi Saada
2021-02-05 23:36 ` Jeffrey R. Carter
2021-02-06  0:59   ` Mehdi Saada
2021-02-06  1:34     ` Mehdi Saada
2021-02-06  2:13       ` Paul Rubin
2021-02-06  7:21     ` J-P. Rosen
2021-02-06  9:36 ` Dmitry A. Kazakov
2021-02-06 10:38   ` AdaMagica
2021-02-06 11:37     ` Mehdi Saada
2021-02-06 11:51       ` Mehdi Saada
2021-02-06 18:10         ` Paul Rubin
2021-02-06 18:55           ` Mehdi Saada
2021-02-06 20:26             ` Paul Rubin
2021-02-07  8:52               ` Mehdi Saada
2021-02-07 20:38                 ` Paul Rubin
2021-02-07  9:55             ` Gautier write-only address
2021-02-07 22:54               ` Mehdi Saada
2021-02-06 11:47     ` Dmitry A. Kazakov [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