Copying binary files

Hi,
I'm searching for an easy solution to copy a big amount of large binary files, e.g. photos from memory card to hard disk. The files should not change in a single bit and the copy operation should run fast. The STL solution with ifstream/ofstream using get() and put() works, but is this the best solution?
OS libraries are not platform independent, but what about other libraries? (Qt?)
Check for Boost filesystem library http://live.boost.org/doc/libs/1_44_0/libs/filesystem/v2/doc/index.htm
( it has a function called copy_file )
Hi,

Another option, but maybe not as good as the Boost option is to do binary reading/writing. Take a look at:

http://cplusplus.com/doc/tutorial/files/

and scroll down to the section "Binary files".

Ray

Topic archived. No new replies allowed.