Saturday, December 28, 2019

10. Write a sequential datafile to insert user need record to an existing data file "RECORD.DAT" including Name , Age , Address , and Phone number :-


Ans:-


CLS
OPEN "RECORD.DAT" FOR APPEND AS #1
Do
INPUT " NAME "; N$
INPUT "AGE";A
INPUT"PHONE NUMBER";P
WRITE #1,N$,A,A$,P
INPUT "ANY MORE(Y/N) :-;Y$
LOOP WHILE Y$="Y"
CLOSE #1
END

No comments:

Post a Comment

File Handling

Introduction:- Data are used in all the programs for retrieving information. In QBASIC you can store data in a separate file called a da...