Read a file one line at a time,
as opposed to reading the entire file at once.



Related tasks

 Read a file character by character
 Input loop.


;
;       Read a file line by line for DBL version 4
;
        RECORD
 
LINE,   A100
 
PROC
;-----------------------------------------------
        OPEN (1,I,"FILE.TXT")      [ERR=NOFIL]
        DO FOREVER
           BEGIN
                READS (1,LINE,EOF) [ERR=EREAD]
           END
EOF,    CLOSE 3
 
        GOTO CLOS
 
;------------------------------------------------
NOFIL,  ;Open error...do something
        GOTO CLOS
 
EREAD,  ;Read error...do something
        GOTO CLOS
 
CLOS,   STOP