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 an opaque pointer?

1 Answers  


What does namespace mean in c++?

0 Answers  


int main() { int i ,a[i]; i = 0; a[i] = 10; cout<< a[i] << endl; return 0; } What will be output of this program?

11 Answers   HCL, Mphasis,


Does improper inheritance have a potential to wreck a project?

0 Answers  


what is upcasting in C++?

0 Answers  






Which sort does c++ use?

0 Answers  


What does flush do?

0 Answers  


What is a "Copy Constructor"?

2 Answers  


What is a dynamic binding in c++?

0 Answers  


What is c++ similar to?

0 Answers  


what does the following statement mean? int (*a)[4]

0 Answers  


Explain selection sorting?

0 Answers  


Categories