1.

Write about different modes in which a file can be opened.

Answer»

File Opening Modes: The tasks performed by fopen() when a file is opened in each of these modes are also mentioned. Character Used

for Mode → Meaning

w → Create for write

r → Open for reading

a → Open for append/create a new file

w+ → Create for read/write

r+ → Open for read/write

a+ → Open for read/write/create new file



Discussion

No Comment Found