How can we open a file in Binary mode and Text mode?what is
the difference?
Answer Posted / sha
fopen("file1.txt","wb"); will open the file file1.txt in
binary read and write mode. Binary mode is useful to write
a file with 0s and 1s. For example, sometimes it would be
required to open a executable file. In that case, binary
mode is useful.
fopen("file1.txt","w"); will open the file1.txt in text
mode which means you can write regular letters and numbers
in that file.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Why dont c comments nest?
how to introdu5ce my self in serco
Can we declare variables anywhere in c?
What are actual arguments?
What is omp_num_threads?
What is conio h in c?
in iso what are the common technological language?
What are the different types of errors?
Explain how can I open a file so that other programs can update it at the same time?
Differentiate between the = symbol and == symbol?
What is bss in c?
What is the use of a conditional inclusion statement in C?
What is a static variable in c?
what do the 'c' and 'v' in argc and argv stand for?
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }