I am reading from standard input (a text file and doing calculations with the data which is lined up like this:
2 --This states the amount of following sets of info
150 -- this is the first set of data
250 -- this is the second set of data
0 -- this is supposed to tell my program that this is the end of the two sets but
keep looping because there might be multiple sets in here, seperated by "0"'s.
Basic outline of my ADA program:
procedure test is
begin
while not end_of_file loop
......//my whole program executes
end loop;
end test;
I want to know how to tell my program to keep looping until theres nothing to read but to keep in mind that the ZERO's seperate the data sets and to keep looping if there is more data after each "0".