
30 Jul
2008
30 Jul
'08
8:49 p.m.
Hi Say I want to copy the contents of a file into memory, how do I do the actual copy. Eg boost::filesystem::path p = "file.txt" const unsigned int filesize = boost::filesystem::file_size( p ); unsigned char* buffer = new unsigned char[filesize]; // how do I copy file contents into buffer? Many thanks Simon