Computer Science, asked by mayu6564, 10 months ago

किसी फाइल को खोलने के लिए किस फंक्शन का उपयोग किया जाता है? उसका सिण्टैक्स बताइए।

Answers

Answered by queensp73
0

Answer:

fopen() function is used to open a file to perform operations such as reading, writing etc. 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.

Declaration: FILE *fopen (const char *filename, const char *mode)

fopen() function is used to open a file to perform operations such as reading, writing etc. 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.

FILE *fp;

fp=fopen (“filename”, ”‘mode”);

Where,

fp – file pointer to the data type “FILE”.

filename – the actual file name with full path of the file.

mode – refers to the operation that will be performed on the file. Example: r, w, a, r+, w+ and a+. Please refer below the description for these mode of operations.

Explanation:

HOPE THIS HELPS U MY FRD !

PLZ MARK AS BRAINLIEST !

>>>>>>>THANK U<<<<<<

#keep smiling :)

Similar questions