EXERCISES
-
What are the various methods of classifying files?
-
What are the advantages of binary file?
-
What are the advantages of text files?
-
What are the advantages of Random Access Files?
-
What are the operations on files? Illustrate with examples.
-
Describe various classes available for file operations.
-
How do we check for errors upon opening a file and output the correct error message?
-
Write a program to read bio-data from the console and write to a file. Filename should be accepted from command line.
-
Create a class “TextFile” for handling text files.
-
Write a program to read your name roll number, address, physics, chemistry, and maths marks from keyboard and place it in file.
-
Write a function named fcheck() that checks whether a ...
Get Object Oriented Programming with C++, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.