adspace
What is a binary file? List the merits and demerits of the binary file usagein C++.
Answer Posted / Ravishankar
A binary file is a data file that stores information using a series of bytes, unlike text files which store human-readable characters. In C++, binary files are useful for storing complex data structures such as arrays or objects, as they can preserve the original structure of the data. Advantages include faster access times and compact storage size. Disadvantages include platform dependence (binary files may not be portable across different operating systems) and lack of human-readability.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers