Friday, October 18, 2019

149. Qbasic sequential file handling to store the records of few employees having Name, Address, Post, Gender and Salary fields.

149.Create a data file to store the records of few employees having Name, Address, Post, Gender and Salary fields. [SEE 2073]
OPEN “std.rec” FOR OUTPUT AS #1
TOP:
CLS
INPUT “Enter Name”; N$
INPUT “Enter Address”; A$
INPUT “Enter Post”; P$
INPUT “Enter gender”; G$
INPUT “Enter Salary”; S
WRITE #1, N$, A$, P$, G$, S
INPUT “Do you want to continue”; CH$
IF UCASE$(CH$)=”Y” THEN GOTO TOP
CLOSE #1
END

1 comment: