Introduction
In this lab, you will learn how to create a new file in C programming language and write data to it. The FILE data type is used to represent a file in C, and the fopen() function is used to open a file for reading, writing, or appending. Once a file is opened, data can be written to it using the fprintf() function, and the fclose() function is used to close the file after writing data.



