comp.lang.ada
 help / color / mirror / Atom feed
From: "SteveD" <nospam_steved94@attbi.com>
Subject: Re: File IO problem - silly mistake :o(
Date: Sat, 07 Dec 2002 13:33:50 GMT
Date: 2002-12-07T13:33:50+00:00	[thread overview]
Message-ID: <2NmI9.267012$QZ.40870@sccrnsc02> (raw)
In-Reply-To: d40d7104.0212060350.7071cf8a@posting.google.com

"prashna" <vashwath@rediffmail.com> wrote in message
news:d40d7104.0212060350.7071cf8a@posting.google.com...
> "Martin Dowie" <martin.dowie@no.spam.btopenworld.com> wrote in message
news:<aspio0$dik$1@knossos.btinternet.com>...
> > "prashna" <vashwath@rediffmail.com> wrote in message
> > news:d40d7104.0212052227.3aaa570a@posting.google.com...
> > >    while END_OF_FILE(FILE_I) loop
> >
> > You'll probably want a second look at this line.
>
>
> Thank's Martin, I corrected it to "not END_OF_FILE(FILE_I)" now it is
working fine.

I would also suggest adding:

with Ada.Exceptions;
 use Ada.Exceptions;

To the start of the file, and

exception
  when REASON: others =>
    Put_Line( "EXCEPTION NAME: " & Exception_Name( REASON ) );
    Put_Line( "EXCEPTION MESSAGE: " & Exception_Message( REASON ) );
    Put_Line( "EXCEPTION INFORMATION: " & Exception_Information( REASON ) );

immediately before the last "end".

If you remove the last new line from your source file and re-run the program
with these additions you'll see why I make this suggestion.

SteveD






  reply	other threads:[~2002-12-07 13:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-06  6:27 File IO problem prashna
2002-12-06  7:14 ` Martin Dowie
2002-12-06 11:50   ` File IO problem - silly mistake :o( prashna
2002-12-07 13:33     ` SteveD [this message]
2002-12-06 17:13 ` File IO problem Jeffrey Carter
replies disabled

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