I am not sure if c++ have class like DataInputStream (in java)? either from STL or boost.
That would be more handy than fstream.
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.