comp.lang.ada
 help / color / mirror / Atom feed
From: Jerry <list_email@icloud.com>
Subject: Re: How to write "Hello" to a text file without a line terminator
Date: Fri, 12 Aug 2016 20:21:50 -0700 (PDT)
Date: 2016-08-12T20:21:50-07:00	[thread overview]
Message-ID: <ee68c010-85f0-4c38-b335-cdb3815f45c4@googlegroups.com> (raw)
In-Reply-To: <nol1ao$fpp$1@dont-email.me>

On Friday, August 12, 2016 at 10:34:19 AM UTC-7, Jeffrey R. Carter wrote:
> 
> To obtain a file without a final EOL, you can use streams, as suggested, or
> instantiate Ada.Sequential_IO for Character, which will require that you output
> your Characters individually.

Using Ada.Sequential_IO with Character works and seems easier than using Streams.

Using Ada.Sequential_IO instantiated for String puts out eight spaces before Hello or longer strings.
> 
> However, I don't know any portable way to write to standard output without
> adding an EOL. Any output involving Ada.Text_IO.Standard_Output will invoke
> Close when the file is finalized.
> 
That's OK for me, as I need to only write to an actual text file.

Thanks, everybody!

Jerry


  reply	other threads:[~2016-08-13  3:21 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-12  4:05 How to write "Hello" to a text file without a line terminator Jerry
2016-08-12  6:41 ` G.B.
2016-08-12  7:23 ` Dmitry A. Kazakov
2016-08-12  7:41   ` J-P. Rosen
2016-08-12  7:46     ` Jerry
2016-08-12  7:44   ` Jerry
2016-08-12 17:34     ` Jeffrey R. Carter
2016-08-13  3:21       ` Jerry [this message]
2016-08-13  4:23         ` Jeffrey R. Carter
2016-08-13  9:12           ` AdaMagica
2016-08-13 18:03             ` Jeffrey R. Carter
2016-08-14  7:58               ` AdaMagica
2016-08-14  8:30                 ` Simon Wright
2016-08-14  8:54                   ` Dmitry A. Kazakov
2016-08-14  9:40                     ` Simon Wright
2016-08-14 10:17                       ` Dmitry A. Kazakov
2016-08-14 11:28                         ` Simon Wright
2016-08-14 13:31                           ` Dmitry A. Kazakov
2016-08-15 23:35                       ` Randy Brukardt
2016-08-14 13:28                   ` AdaMagica
2016-08-14 13:54                     ` Simon Wright
2016-08-14 17:05                     ` Jeffrey R. Carter
2016-08-14 18:26                       ` AdaMagica
2016-08-14 19:19                         ` Dmitry A. Kazakov
2016-08-14 13:32                   ` AdaMagica
2016-08-14 16:39                   ` Jeffrey R. Carter
2016-08-12  7:46   ` Simon Wright
     [not found]   ` <noka54$ci$1@dont-email.me>
2016-08-12 13:44     ` Dmitry A. Kazakov
replies disabled

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