comp.lang.ada
 help / color / mirror / Atom feed
* Is this explanation correct?
@ 2001-06-29 21:54 chris.danx
  2001-06-30  0:30 ` Jeffrey Carter
  0 siblings, 1 reply; 2+ messages in thread
From: chris.danx @ 2001-06-29 21:54 UTC (permalink / raw)


Hi,

The ps-programming@tutoraid.org mailing list seems a little dead at the minute
and it seems like the Ada folk are busy (I am no expert and don't want to
perpetuate misinformation).


A newbie posted asking

"There is something I don't understand about
end_of_file stuff. When I key in my data on the file in the floppy drive, if
I leave and save a space after the end data, I will get an End_Error . but
when I open the file back, and get rid of that space and save, and run the
program it works fine. can you tell me why?"


I want to check this before I relay it to the mailing list.


The program uses Ada.Integer_text_io which ignores spaces, so when the program
get's to the space it thinks there's an integer after it and it doesn't find
one, so it generates the end_error (exception) to let us know.


Is this correct?

Cheers,
Chris




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-06-30  0:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-29 21:54 Is this explanation correct? chris.danx
2001-06-30  0:30 ` Jeffrey Carter

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