By Aaditya Shah
[Subscribe and Comment for more updates]
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