![]() ![]() Please refer below the description for these mode of operations.įclose() function closes the file that is being pointed by file pointer fp. In a C program, we close a file as below. Mode – refers to the operation that will be performed on the file. In a C program, we declare a file pointer and use fopen() as below. fopen() function creates a new file if the mentioned file name does not exist.įp – file pointer to the data type “FILE”.įilename – the actual file name with full path of the file. ![]() Get more detail about structure in C programmingĭeclaration: FILE * fopen (const char *filename, const char *mode)įopen() function is used to open a file to perform operations such as reading, writing etc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |