Friday, October 18, 2019

146. Qbasic sequential file handling program to store Roll no., Name, Class and Address of any five students.

146.Write a program to store Roll no., Name, Class and Address of any five students. [SEE 2074]
OPEN "Student.dat" FOR OUTPUT AS #1
FOR I = 1 TO 5
INPUT "Enter Roll No."; r
INPUT "Enter Name"; n$
INPUT "Enter Class"; c
INPUT "Enter Address"; a$
WRITE #1, r, n$, c, a$
NEXT I
CLOSE #1
END

1 comment: