Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How can we open a file in Binary mode and Text mode?what is
the difference?



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

Post New Answer

More C Interview Questions

What is the need of structure in c?

0 Answers  


Write a program of prime number using recursion.

0 Answers   Aspiring Minds,


When should the const modifier be used?

0 Answers  


how to swap 4 number without using temporary number?

2 Answers  


How can I automatically locate a programs configuration files in the same directory as the executable?

0 Answers  


main() { printf(5+"Vidyarthi Computers"); }

6 Answers  


What is a static variable in c?

0 Answers  


What is spark map function?

0 Answers  


Which is better oop or procedural?

0 Answers  


Is it fine to write void main () or main () in c?

0 Answers  


What is a null pointer in c?

0 Answers  


Is void a keyword in c?

0 Answers  


Categories