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.b) Write a function to count the number of
words present in a text file named“PARA.TXT”. Assume that each word is separated by a single blank/space character and no blanks/spaces in the beginning and end of the file. Solution:
4.c) Following is the structure of each recordin a data file named “PRODUCT.DAT” .
Write a function in C++ to update the file with a new value of Stock. The Stock and the Product_Code, whose Stock to be updated, are read during the execution of the program. Solution:
CBSE Computer Science Solved Revision Tour By Mr. Ravi Kiran ( [email protected] ) |
|