What are Files in C or C++?

Files are used to store the input and output of programs on secondary storage device like hard disc etc. so that this input and output could be used for future use. A file is a collection of bytes. When we execute a program it displays the output on the monitor after that it is destroyed. In order to save this output, files are used so that we can use the output later on.

Types of Files:
1. Text Files
2. Binary Files

More Questions

Leave a Reply

Word Verfication * Time limit is exhausted. Please reload CAPTCHA.