2081 10

CSC115 ยท 2081 ยท 5 marks

Explain different file opening modes.

Explain different file opening modes. [5]

C ProgrammingChapter 10: File Handling in COpening and closing of File

When working with files in C, a file must be opened before any I/O operations can be performed on it. The fopen() function is used to open a file, and it requires a mode string that specifies how the file should be accessed. Syntax: --- Mode Name Description ------------------------- "r" Read Ope...