How do I open binary files?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is c++ w3school?

636


Which coding certification is best?

572


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

611


Why is c++ called oops?

558


Where Malloc(), Calloc(), and realloc() does get memory?

613






Describe friend function & its advantages.

716


What is ios in c++?

648


How do you differentiate between overloading the prefix and postfix increments?

593


Why is main function important?

587


What is a hash function c++?

556


What should main() return in c and c++?

529


What is a loop? What are different types of loops in c++?

595


Define linked lists with the help of an example.

558


What is purpose of new operator?

599


How do pointers work?

707