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
Calculate 1*2*3*____*n using recursive function??
Can we declare variables anywhere in c?
What is string constants?
What library is sizeof in c?
What is an operator?
#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); }
What is d scanf?
What are the 3 types of structures?
Write a program that accept anumber in words
What is function prototype?
What is methods in c?
How do I use strcmp?
Explain the ternary tree?
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?
Is null always equal to 0(zero)?