Which of the following mode of fopen() function opens a file only for writing. If a file with that name does not exist, attempts to create a new file. If the file exist, place the file pointer at the end of the file after all other data.Select one:a.Wb.Wc.Ad.A+
Question
Which of the following mode of fopen() function opens a file only for writing. If a file with that name does not exist, attempts to create a new file. If the file exist, place the file pointer at the end of the file after all other data.Select one:a.Wb.Wc.Ad.A+
Solution
The mode of fopen() function that opens a file only for writing, attempts to create a new file if it does not exist, and places the file pointer at the end of the file after all other data is "d. A+".
Similar Questions
Which of the following operations can be performed on the file "NOTES.TXT" using the below code?FILE *fp;fp = fopen("NOTES.TXT", "r+");
Which of the following opens the file associated with the stream?Select one:Fopen;None of thesefopen();open();
What does the open() function return for file operations? a. File mode b. File object c. File name d. None of these
What is the purpose of "rb" in fopen() function used below in the code? FILE *fp; fp = fopen("source.txt", "rb"); ans. open "source.txt" in binary mode for reading and writing open "source.txt" in binary mode for reading Create a new file "source.txt" for reading and writing None of above
Which of the following mode in file opening statement generates an error ifthe file exists?a) a+ b) r+ c) w+ d) None of these
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.