: : : Thnx for the answer in my other subject. Plz answer this one too ;)
: : :
: : : How can i insert information from the second line, third, fourth etc lines? (not all toghether, one - one) (integers, one integer per line)
: : :
: : : Thnx in advance
: : :
: : Use a while do loop:
: :
: : while not eof(f) do
: : begin
: : Readln(f, var1);
: : ...
: : end;
: :
: :
: Cool, how do i use that for multiple lines (when i say multiple number can get up to 100 and moe. Can't use eof 100 times...
:
:
While-do is a loop. What happens is this:
if not eof(f) then
begin
readln()
if not eof(f) then // Second time through the loop
begin
readln()
if not eof(f) then // Third time through the loop
begin
readln()
if not eof(f) then // fourth time through the loop
begin
// etc. until the end of file marker is reached