View Full Version : How to use the vector data from CL_Raw ?

12-21-2006, 08:35 PM

I'm new to C++ and Clanlib (ouch :) ).

I was using files inside my application but now i would like to load them from an archive with the resources manager.

When using CL_Raw i get a binary vector std::vector<unsigned char>

Is there a way to use this vector like a FILE in a "fread" way ?
I mean i must read sequences of Bool, Int, Float and Char.
What's the best way to achieve this ?

If we need to convert this binary vector to a FILE, is this possible to read data without writing it to the hardisk ?

Thanks :)