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
1. Basic Heap: Each memory location in our model of the RAM will be an instance of type Memory: 2. typedef union Memory_u Memory; 3. union Memory_u{ 4. char character;

find area uder the curve y=f(x) between x=a and x=b

To develop a web crawler such that when given a base URL, it will traverse the entire web tree and then build an index of keywords and what URL link they appear on.   The web crawl

write a program that adds all numbers from 1 to 200

Compound Assignment Operators Apart from the binary and the unary arithmetic operators, we also have compound assignment operators. These are +=, -=, *=, /=, %=. Using these op

For this program you will add and test 2 new member functions to the IntSLList class posted on the website. The two member functions are: insertByPosn(int el, int pos) Assuming t

I have an assignment , can I send it

The Special Pointer 'this' When various instances of a class come into existence, it naturally follows that each instance has its own copy of member variables. If this were not