EXERCISES
  1. What are the various methods of classifying files?

  2. What are the advantages of binary file?

  3. What are the advantages of text files?

  4. What are the advantages of Random Access Files?

  5. What are the operations on files? Illustrate with examples.

  6. Describe various classes available for file operations.

  7. How do we check for errors upon opening a file and output the correct error message?

  8. Write a program to read bio-data from the console and write to a file. Filename should be accepted from command line.

  9. Create a class “TextFile” for handling text files.

  10. Write a program to read your name roll number, address, physics, chemistry, and maths marks from keyboard and place it in file.

  11. 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.