14.3 BASIC FILE TYPES

Let us study the basic file types using a few question answers.

Q. What are the simple types of files?

A. Files are either text files or binary files.

Q. What are the advantages of text file?

A. There are many advantages, such as:

  1. These files can be created with a sophisticated word processor to a simple tool such as notepad in Windows.
  2. These files can easily be read or printed.
  3. It can be used to store a program (source code).
  4. It can also store input and output data.

Q. What are the different binary files?

A. Binary files can be of two types (1) binary data files; (2) binary program files.

Q. What is the disadvantage of binary data files?

A. They cannot be easily read or written by ordinary tools. They need special programs ...

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.