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

Is c still relevant?

0 Answers  


What does c mean?

0 Answers  


how to write a c program to print list of fruits in alpabetical order?

0 Answers  


What is #define size in c?

0 Answers  


what is a NULL pointer?

2 Answers  


which will return integer? a) int*s ( ) b) ( int* ) s( ) c) int ( *s ) ( )

1 Answers   C DAC,


How the processor registers can be used in C ?

7 Answers   HP,


provide an example of the Group by clause, when would you use this clause

0 Answers  


is compiler do read the data line by line or not. ??

6 Answers   LG Soft, Satyam, Tech Mahindra,


How do you determine whether to use a stream function or a low-level function?

0 Answers  


Are comments included during the compilation stage and placed in the EXE file as well?

0 Answers  


What is pass by reference in functions?

0 Answers  


Categories