Solution:
REM PROGRAM TO DISPLAY ALL THE RECORDS OF THE GIVEN FILE
CLS
OPEN "MARKS.DAT" FOR INPUT AS #1
PRINT "NAME", "ENGLISH", "COMPUTER", "SCIENCE"
DO WHILE NOT EOF(1)
INPUT #1, N$, ENG, COMP, SCI
PRINT N$, ENG, COMP, SCI
LOOP
CLOSE #1
END
****************************