Hallo.
I need to copy files accross a network, so would be best, I imagine, opening one as an ifstream & reading it into an ofstream in binary mode.
Would copying all files in binary mode guarantee that the file would not be altered, or is there some wierd kind of ftp-type reason for copying files in different ways?
Also - could anyone show me a snippet of code that might be the best way to make this transfer? I've never even opened a file in binary mode before, let alone anything else...
Cheers,
Douglas JL
Common sense is what tells you the world is flat.
I need to copy files accross a network, so would be best, I imagine, opening one as an ifstream & reading it into an ofstream in binary mode.
Would copying all files in binary mode guarantee that the file would not be altered, or is there some wierd kind of ftp-type reason for copying files in different ways?
Also - could anyone show me a snippet of code that might be the best way to make this transfer? I've never even opened a file in binary mode before, let alone anything else...
Cheers,
Douglas JL
Common sense is what tells you the world is flat.