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 do I open binary files?



How do I open binary files?..

Answer / guest

do a bitwise or of the file open mode with ios::binary, as in:

ifstream mystream( "filename.ext", ios::in | ios::binary );

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C++ General Interview Questions

What are the debugging methods you use when came across a problem?

1 Answers  


Given a simple program designed to take inputs of integers from 1-1000 and to output the factorial value of that number, how would you test this program? You do not have access to the code. Please be as specific as possible.

4 Answers   Microsoft,


What is dangling pointers?and what is memory leak?

5 Answers  


How can you quickly find the number of elements stored in a static array?

0 Answers  


What is c++ hiding?

0 Answers  


What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?

0 Answers  


How can an improvement in the quality of software be done by try/catch/throw?

0 Answers  


what is a class? Explain with an example.

0 Answers  


How const int *ourpointer differs from int const *ourpointer?

0 Answers  


What is the disadvantage of using a macro?

0 Answers  


What is split a string in c++?

0 Answers  


what are function pointers?

0 Answers  


Categories