SEE Computer Science Specification Table 2076, Networking and Telecommunication, Ethical and Social Issues in ICT, Computer Security, E-Commerce, Contemporary Technology, Number System, Database Management System (MS Access), Modular Programming, Sequential File Handling, C Programming Basics, SEE Computer E-Book Grade IX and X
Monday, February 5, 2018
Qbasic File Handling Program to delete records whose bus stoppage is "Bhaktapur"
OPEN "Busrider.inf" FOR INPUT AS #1
OPEN "temp.inf" FOR OUTPUT AS #2
CLS
WHILE NOT EOF(1)
INPUT #1, bn, n$, c, b$
IF UCASE$(b$) <> "BHAKTAPUR" THEN
WRITE #2, bn, n$, c, b$
ELSE
PRINT "Data Deleted"
END IF
WEND
CLOSE
KILL "Busrider.inf"
NAME "temp.inf" AS "Busrider.inf"
END
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment