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?

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


Please Help Members By Posting Answers For Below Questions

Calculate 1*2*3*____*n using recursive function??

2048


Can we declare variables anywhere in c?

1006


What is string constants?

1155


What library is sizeof in c?

1093


What is an operator?

1081


#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); }

1125


What is d scanf?

1096


What are the 3 types of structures?

1035


Write a program that accept anumber in words

1764


What is function prototype?

1156


What is methods in c?

1103


How do I use strcmp?

1084


Explain the ternary tree?

1033


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?

2105


Is null always equal to 0(zero)?

1040