Does c++ have DataInputStream?

Hello everyone,

I am not sure if c++ have class like DataInputStream (in java)? either from STL or boost.
That would be more handy than fstream.

Regards
Elton
closed account (zb0S216C)
It's called "std::cin"[1, std::cin].

References:
[1, std::cin] http://www.cplusplus.com/reference/iostream/cin/


Wazzak
Last edited on
Hi Wazzak

Isn't cin stdin?

I think I can use fstream.read((char*)xx, sizeof xx) to read from a file. That should be enough. Just wonder if there's any more handy api.

Thanks anyway.
Topic archived. No new replies allowed.