Q : How to create a file in C? Why should a user close the file?
Answer :
For create a file in language,stdio.h header file has fopen
method which takes two arguments and return base address of opening file.
Suntax
Return_address fopen(“file
name”,”Open mode”);
Open mode indicate file opening option whether a file is
open for read, write, append or both.