M
me
Hi guys - the question is in the subject line.
I thought of one quick way:
std::ifstream input("myfile.dat") ;
std::istreambuf_iterator beg(input), end ;
std::vector DataFile(beg,end) ;
But Visual Studio complains about not being able to convert param 1 to
unsigned int....
Shame, as it seems really neat....
So is there a 'normal' way of doing it?
Cheers
pjw
I thought of one quick way:
std::ifstream input("myfile.dat") ;
std::istreambuf_iterator beg(input), end ;
std::vector DataFile(beg,end) ;
But Visual Studio complains about not being able to convert param 1 to
unsigned int....
Shame, as it seems really neat....
So is there a 'normal' way of doing it?
Cheers
pjw