I am not sure if c++ have class like DataInputStream (in java)? either from STL or boost.
That would be more handy than fstream.
It's called "std::cin"[1, std::cin].
[1, std::cin] http://www.cplusplus.com/reference/iostream/cin/
Last edited on
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.