Friday, October 18, 2019

157. Qbasic sequential file handling to read all the records from the data file “STUDENT.TXT” and display all the records where the fields name are unknown.


157.Write a program to read all the records from the data file “STUDENT.TXT” and display all the records where the fields name are unknown.

OPEN "STUDENT.TXT" FOR INPUT AS #1
CLS
WHILE NOT EOF (1)
   LINE INPUT #1, A$
    PRINT A$
WEND
CLOSE #1
END

No comments:

Post a Comment