The stepwise explanation for writing the file: In this mode, if you have don’t have a text file to read, it will create a new text file with the given name in the current directory. In another way, you can open the file in append “a” mode. Printf("\nError: Unable to open the file for Reading.") Here is a simple C program to read a file. Note: If you don’t have a text file to read, fopen() will return NULL.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |