From: Jeffrey Carter <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Reading data from file
Date: Sun, 09 Mar 2014 19:42:24 -0700
Date: 2014-03-09T19:42:24-07:00 [thread overview]
Message-ID: <lfj8qh$lps$1@dont-email.me> (raw)
In-Reply-To: <cb082534-18ee-4f22-b7df-bc3d6065843a@googlegroups.com>
On 03/09/2014 03:39 PM, Laurent wrote:
>
> Read_From_File : loop
> Read_File : loop
> Read_Record : loop
I don't know, but I suspect it has something to do with having 3 loops when you
only need 1:
Ada.Text_IO.Open (...);
Read_All_Records : loop
Employees.IO.Read_Employee_From_File (...);
exit Read_All_Records when End_Of_File or End_Of_Record;
Database.Insert (...);
...
end loop Read_All_Records;
Ada.Text_IO.Close (...); -- Don't forget this.
--
Jeff Carter
"Why, the Mayflower was full of Fireflies, and a few
horseflies, too. The Fireflies were on the upper deck,
and the horseflies were on the Fireflies."
Duck Soup
95
next prev parent reply other threads:[~2014-03-10 2:42 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-04 9:46 Reading data from file Laurent
2014-03-04 16:17 ` adambeneschan
2014-03-04 18:08 ` Mike H
2014-03-04 21:27 ` Laurent
2014-03-04 21:35 ` Laurent
2014-03-04 21:42 ` Niklas Holsti
2014-03-05 13:59 ` Mike H
2014-03-05 20:33 ` Laurent
2014-03-05 21:00 ` Jeffrey Carter
2014-03-05 21:13 ` Laurent
2014-03-05 21:25 ` Niklas Holsti
2014-03-05 21:56 ` Laurent
2014-03-06 8:35 ` Dmitry A. Kazakov
2014-03-07 21:55 ` Laurent
2014-03-08 6:56 ` Dmitry A. Kazakov
2014-03-08 21:21 ` Laurent
2014-03-09 22:39 ` Laurent
2014-03-10 2:42 ` Jeffrey Carter [this message]
2014-03-11 20:54 ` Laurent
2014-03-08 9:00 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox