Home  |  IT Zone  | Practice ZoneTips / Tricks  |  Did You Know  |  Inspirational  |  Health  |  Insurance  |  Universities  |  Forex  |  Mathematics  |  Illusions  |  Children Day Quotes  |  Be Aware  |  Articles  | Funny Pics | Entertainment | Songs | Simple Joys of Life |

A Program To Add More Records In File (Qbasic Code)

Make a program to add more records in a file 'std.dat'. File contains name, class and roll no., marks of english and science of a student.
 
Normal Program
CLS
OPEN "std.dat" FOR APPEND AS #1
INPUT "Enter name:"; n$
INPUT "Enter class:"; cl
INPUT "Enter roll:"; r
INPUT "Enter marks in english:"; en
INPUT "Enter marks in science:"; sc
WRITE #1, n$, cl, r, en, sc
CLOSE #1
END

Share :

X
Back To Top

facebook main

Powered by Blogger.