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 is functions syntax in c++?

0 Answers  


Differences between private, protected and public and give examples.

0 Answers  


Brief explaination about #include<iostream.h>, cin and cout

3 Answers  


What are the basic data types used in c++?

0 Answers  


difference between macro and function?

3 Answers  






What are virtual constructors/destructors?

0 Answers  


why v use c++ even we have microprocessor

2 Answers   CybAge,


What is the difference between the functions memmove() and memcpy()?

0 Answers  


Describe Trees using C++ with an example.

0 Answers  


what is c++

0 Answers  


What is the use of endl in c++?

0 Answers  


Do you know about latest advancements in C++ ?

0 Answers   Agilent, ZS Associates,


Categories