To Display All Records In The File.

  • File contains name, class and roll no., marks of english and science of some students.
CLS
OPEN "std.dat" FOR INPUT AS #1
PRINT "Name", "Class", "Roll", "English", "Science"
DO WHILE NOT EOF(1)
    INPUT #1, n$, cl, r, en, sc
    PRINT n$, cl, r, en, sc
LOOP
CLOSE #1
END

Share :

Twitter

Random Posts

Back To Top

facebook main

counter

Powered by Blogger.