Home  |  IT Zone  |  Tips / Tricks  |  Did You Know  |  Inspirational  |  Health  |  World Infos  |  Insurance  |  Universities  |  Forex  |  Mathematics  |  Illusions  |  Children Day Quotes  |  Fun / Jokes  |  Decent Quotes  |  Birthday Msgs  |  Good Morning Msgs  |  Good Night Msg  |  Husband Wife Jokes  |  Teacher Students Jokes  |  Insult Jokes  |  Love Quotes  |  Sad Quotes  |  Funny Pics  |  Be Aware  |  Articles  |  Simple Joys of Life 

A Qbasic Program To Find The Certain Record In A Data File.

  • A sequential data file "std.dat" contains name, class and roll of a student. Make a program to display certain records in the file according to the roll no. supplied. (qbasic code)
  • CLS
    OPEN "std.dat" FOR INPUT AS #1
    INPUT "Enter the roll number of the required student:"; rn
    PRINT "Name", "Class", "Roll"
    DO WHILE NOT EOF(1)
        INPUT #1, n$, cl, r
        IF r = rn THEN
            PRINT n$, cl, r
        ELSE
        END IF
    LOOP
    CLOSE #1

Share :

Twitter
Back To Top

facebook main

Powered by Blogger.