Please can someone help me to match with the correct answers?? It is C programmi
ID: 3802954 • Letter: P
Question
Please can someone help me to match with the correct answers?? It is C programming
Match the fopen flags with the type of file operation. Open file for read only in binary mode. Open file for reading and writing after resetting the contents. Open a file for binary reading and writing at the end of existing data. Open a file in character mode for writing only. Previous contents will be lost. Open a file for writing at the end in binary mode. Open a file for reading or writing, with an error thrown if it does not exist. A. a^+w B. r^+w C. r^+ D. r^+b E. w F. ab G. rb H. W^+ I. a^+b J. rwExplanation / Answer
Open File for read only in binary mode - rb (r is for reading and b is to specify in binary mode)
open file read and write after resetting the contents - r+w
Open file for binary reading and writing at the end of exiting data - a+b
Open file in character mode for writing only. Previous contents will be lost - w
Open a file for writing at the end of binarymode- ab
open a file for reading or writing, with an error thrown if it does not exist. - rw