LIVE Course for free

Rated by 1 million+ students
Get app now
0 votes
in Computer by (45.8k points)
closed by

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

1 Answer

+1 vote
by (45.4k points)
selected by
Best 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

Related questions

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.