Top "Iostream" questions

The C++ iostream library is an object-oriented library that provides input and output functionality using streams.

Are there binary memory streams in C++

I usually use stringstream to write into in-memory string. Is there a way to write to a char buffer in …

c++ iostream
Obtain a std::ostream either from std::cout or std::ofstream(file)

how do I bind a std::ostream to either std::cout or to an std::ofstream object, depending on a …

c++ exception-handling iostream
How do I print out the contents of a file? C++ File Stream

I am using fstream and C++ and all I want my program to do is to print out to the …

c++ iostream fstream
What exactly is streambuf? How do I use it?

I'm trying to learn a bit more about how I/O streams work in C++, and I'm really confused at …

c++ iostream
Reading and writing a std::vector into a file correctly

That is the point. How to write and read binary files with std::vector inside them? I was thinking something …

c++ file-io stl iostream stdvector
How to write custom input stream in C++

I'm currently learning C++ (Coming from Java) and I'm trying to understand how to use IO streams properly in C++. …

c++ iostream
c++ fastest way to read only last line of text file?

I would like to read only the last line of a text file (I'm on UNIX, can use Boost). All …

c++ iostream seek
Restore the state of std::cout after manipulating it

Suppose I have a code like this: void printHex(std::ostream& x){ x<<std::hex<<123; } .. …

c++ iostream
Android ndk-build iostream: No such file or directory

I'm having problem with compiling cpp file using ndk-build tool (windows 7 with cygwin) Error appears when I try to compile …

android android-ndk cygwin iostream
Hide user input on password prompt

Possible Duplicate: Read a password from std::cin I don't work normally with the console, so my question is maybe …

c++ console iostream cout cin