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 problem familiarizes you with using random numbers in C++. The program is to compute a good approximation of π using a simulation method called "Monte Carlo". The following fi

Define a complex number in c program: class complex                                 {                                   private:                                 in

C Program to check FACTORIAL   main() {             int i,j,m,fact,sum=0;           clrscr();           printf("ENTER THE NO.: ");           scanf("%d",&m);

Differences between a pointer and a reference 1.  A reference must always point to some object where as this restriction is not imposed on a pointer. e.g. int *pi = 0;

how are metric numer change the number of metric

Luminous Jewels - The Polishing Game Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various lum

ABC Car Dealership needs your help to update the ordering system. This car dealer is selling four types of vehicles: Sedan, Truck, SUV, and mini Van. And each type of vehicle can h

Problem Write a program in C++ to read N numbers in an array, the user should be able to search a particular number in the array using sequential search algorithm. Writing a

A skilled programmer is required to build a standalone module to extract, parse and store in database tables, word count data from web pages and RSS feeds. The module can take R

Program to design list in c: Write a program in c to insert the values in list void main() { int i=0; char a[20]; clrscr(); printf("Enter the line\n");