How to use ifstream of C++ to read from a file using length of the data rather than new line?
<p>Instead of the ifstream >> terminating reading for a file whenever it finds newline, I would like to read from a file using data size. Is there a way to do this?</p>

<p>Currently I use mystream.read(string, length), but I would like to used the ">>" operator instead of read. </p>
