02-04-2004, 07:48 PM
Whats the difference, or advantage, of using WHILE NOT or UNTIL in a DO/LOOP?
Such as:
or:
Also, I can never seem to remember, whats the difference between putting the test at the beginning or end of the loop?
Such as:
or:
Thanks all, Dex
Such as:
Code:
DO WHILE NOT EOF(1)
INPUT #1, a$
PRINT a$
LOOP
or:
Code:
DO UNTIL EOF(1)
INPUT #1, a$
PRINT a$
LOOP
Also, I can never seem to remember, whats the difference between putting the test at the beginning or end of the loop?
Such as:
Code:
DO UNTIL EOF(1)
INPUT #1, a$
PRINT a$
LOOP
or:
Code:
DO
INPUT #1, a$
PRINT a$
LOOP UNTIL EOF(1)
Thanks all, Dex