Lars Gullik Bjønnes wrote:

> actually we can easly argue that what we read in is not a string but
> an array of bytes, but to make comparisons easier it is proabably
> easiest to stay with string.
> 
> char char_array[64];
> int read_n = ifs.readsome(dummy, 64);
> string str(dymmy, read_n);
> 
> unfortunately readsome is missing in a lot of sub-standard C++
> libraries.


yes, that's true.

is there an easy way to get the filesize or the streamsize of

        ifstream ifs(filename.c_str());


than we can decrease a counter.

Herbert



-- 
http://www.lyx.org/help/

Reply via email to