comp.lang.ada
 help / color / mirror / Atom feed
From: radke@dsdl.ee.iastate.edu (Kevin Radke)
Subject: Re: GNAT's Text_IO & empty files
Date: 1998/07/07
Date: 1998-07-07T00:00:00+00:00	[thread overview]
Message-ID: <6ntm8c$ulm$1@news.iastate.edu> (raw)
In-Reply-To: 35A12B47.1E9B74B7@magic.fr


How should an ada compiler act when it finds an "ill-formed"
text file?  As an example, on the Win32 platform, it is VERY
easy to create a text file (with a brain-dead editor like notepad)
that does not terminate the final line of the file with
CR/LF before the EOF is reached.

What should a compiler do when an user tries to do a
text_io.get_line on this final line of the file?  One
compiler that we use raises "end_error".  This has
forced us to change our code to read in a file character
by character... :(  Not very efficient...

Thanks!
Kevin




  parent reply	other threads:[~1998-07-07  0:00 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-07-06  0:00 GNAT's Text_IO & empty files Gautier de Montmollin
1998-07-06  0:00 ` Pascal MALAISE
1998-07-07  0:00   ` Gautier
1998-07-07  0:00   ` Kevin Radke [this message]
1998-07-06  0:00 ` Robert Dewar
1998-07-07  0:00   ` Gautier
1998-07-07  0:00     ` Robert I. Eachus
1998-07-07  0:00     ` Robert Dewar
1998-07-07  0:00   ` Markus Kuhn
1998-07-07  0:00     ` Samuel Tardieu
1998-07-08  0:00       ` Aaro Koskinen
1998-07-09  0:00         ` Samuel Tardieu
1998-07-09  0:00         ` Gautier.DeMontmollin
1998-07-07  0:00     ` Gautier
1998-07-08  0:00     ` dennison
1998-07-07  0:00   ` Markus Kuhn
1998-07-07  0:00     ` Michael F Brenner
1998-07-07  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