How can one "reopen" std::cin & std::cout in binary mode?, C/C++ Programming

A: It is implementation dependent. Verify with your compiler's documentation. For instance, assume you wish to do binary I/O using std::cin & std::cout.

Unluckily there is no standard method to cause std::cout, std::cin and/or std::cerr to be opened in binary mode. Closing the streams and trying to reopen them in binary mode may have undesirable or unexpected results.

On systems where this makes a difference, the implementation may provide a way to make them binary streams; however you would have to verify the implementation specifics to determine out.

 

Posted Date: 3/21/2013 7:44:37 AM | Location : United States







Related Discussions:- How can one "reopen" std::cin & std::cout in binary mode?, Assignment Help, Ask Question on How can one "reopen" std::cin & std::cout in binary mode?, Get Answer, Expert's Help, How can one "reopen" std::cin & std::cout in binary mode? Discussions

Write discussion on How can one "reopen" std::cin & std::cout in binary mode?
Your posts are moderated
Related Questions
This assignment builds on Homework 3. The two major modifications are the instruction of pointers and the calculation of mortgage interest rates. Requirements for Project 2:

Explain one-definition rule (ODR). According to one-definition rule, C++ constructs should be identically defined in each compilation unit they are used in. As per ODR, two

I Want a answer for solving the big M method in the topic of simplex method...

Should I explicitly call a destructor on a local variable? Explain it.

How would you print the values of the variables words and lines so they appear in the form: There were 6040 words and 680 lines. Here, 6040 and 680 represent the values of the two

Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they are send

Both malloc & new functions are utilized for dynamic memory allocations & the basic difference is: malloc need a special "typecasting" while it allocates memory for eg. if the poin

A string S is said to be "Super ASCII", if it contains the character frequency equal to their ascii values. String will contain only lower case alphabets (''a''-''z'') and the asci

how objects are initialized dynamically?

Respected Sir, I want the above written text in a C program