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 advantages of using friend classes?

0 Answers  


What do you mean by const correctness?

0 Answers  


What is rvalue?

0 Answers  


Define macro.

0 Answers  


Is swift faster than go?

0 Answers  






Is there finally in c++?

0 Answers  


Is there a new/delete equivalent of realloc?

1 Answers  


What is the stack?

5 Answers   IBM, ICICI,


What is a literal in c++?

0 Answers  


What's c++ used for?

0 Answers  


What is the use of namespace std in C++?

0 Answers   Hexaware,


What do you mean by function pointer?

0 Answers  


Categories