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 4.c) Given a binary file GAME.DAT, containing
Write a function in C++ that would read
contents from the file GAME.DAT and creates
a file named BASKET.DAT copying only those
records from GAME.DAT where the game
name is “Basket Ball”. Solution:
OUTSIDE DELHI : 2007 4.a) Observe the program segment given below
carefully,and answer the question that
follows:
If the function ModifyMarks ( ) is supposed to modify marks for the records in the file MARKS.DAT based on their status of the member Checked (containg value either ‘Y’ or ‘N’).Write C++ statements for the statement 1 and statement 2,where, statement 1 is required to position the file write pointer to an ppropriate place in the file and statement 2 is to perform the write operation with the modified record.
CBSE Computer Science Solved Revision Tour By Mr. Ravi Kiran ( [email protected] ) |
|