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
Integer literal Integer is numbers without fractional parts. e.g. 20       // Decimal 024      // Octal     0x14     // Hexadecimal To indicate long, unsigned,

Implement multiple stacks in a single dimensional array. Write algorithms for various stack operations for them.

6999066263304447777077766622337778 -----> message sent by the first smuggler. my name is robert---------> message decoded by the second smuggler. Where ‘0’ denotes the "space". Ex

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec

I need help with a c# program. Do yall help with c sharp

A: The simplest instance of a smart pointer is auto_ptr that is included in the standard C++ library. Auto Pointer only takes care of Memory leak & does nothing regarding dangling

Need algorithm for c programe #Minimum 100 words accepted#

Q: What are User Defined data types? C supports an extraordinary feature known as "type definition" that permits users to define an identifier that would represent an existing

write a queue program in c langauge?

Given an integer n and a permutation of numbers 1, 2 ... , n-1, n write a program to print the permutation that lexicographically precedes the given input permutation. If the given