After reading this chapter, you will be able to distinguish between the binary, sequential, and random modes of opening files, to manipulate files and folders, to use the Directory class and File class, to open and close files, to create new files, to read the contents of files, to write to files, to modify the contents of files, to create mini database using random mode files, and to delete files using the classes and functions.
What is a file?
A file is a collection of data that is named and saved on the secondary storage (like disk or tape). Contents of file can be retrieved and modified as per requirement.
All data that is loaded in the primary or secondary memory of a ...