CBSE Computer Science - Revision Tour (Solved) CBSE Guess > eBooks > Class XII > CBSE Computer Science Data File Handling Solved Revision Tour By Mr. Ravi Kiran COMPUTER SCIENCE DATA FILE HANDLING DELHI : 2004 4.a) Assuming that a text file named 4.b) Assuming the class Computer as follows:
4.c) Write a function readfile( ) to read all the
records present in already existing binary file SHIP.DAT and display them on the screen, also count the number of records present in the file. DELHI : 2003 4.a) Write a user defined function in C++ to read the content from a text file NOTES.TXT, count and display the number of blank spaces present in it. 4.b) Assuming a binary file FUN.DAT is LAUGHTER (as defined below).Write a user defined function in C++ to add more objects belonging to class LAUGHTER at the bottom of it.
DELHI : 2002 4.a) What is the difference between pub( ) and write ( )? 4.b) Write a C++ program, which initializes a string variable to the content “Time is a great teacher but unfortunately it kills all its pupils.Berlioz” and outputs the string one character at a time to the disk file OUT.TXT.You have to include all the header files if required. DELHI : 2001
CBSE Computer Science Solved Revision Tour By Mr. Ravi Kiran ( [email protected] ) |
|