How can we open a file in Binary mode and Text mode?what is
the difference?
Answer / 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 |
What is the need of structure in c?
Write a program of prime number using recursion.
When should the const modifier be used?
how to swap 4 number without using temporary number?
How can I automatically locate a programs configuration files in the same directory as the executable?
main() { printf(5+"Vidyarthi Computers"); }
What is a static variable in c?
What is spark map function?
Which is better oop or procedural?
Is it fine to write void main () or main () in c?
What is a null pointer in c?
Is void a keyword in c?