Hi all,
How do I copy a file from one folder and paste it into a different folder?
o.s:windows 2000
compiler: visual c++
thanks in advance,
Cathal
Hi all,
How do I copy a file from one folder and paste it into a different folder?
o.s:windows 2000
compiler: visual c++
thanks in advance,
Cathal
You open the file you want to read, you open the file you want to write and start copying stuff from one file to another.
This should of course be done with checking for errors.
SoKrA-BTS "Judge not the program I made, but the one I've yet to code"
I say what I say, I mean what I mean.
IDE: emacs + make + gcc and proud of it.
i should have specified that the file is actually an image file.
i'm just thinking that the best way to do it would probably be to use the "system()" function in conjunction with the dos "copy" command?
SHFileOperation() does what you are looking for.
ermm... The system() call is usually evil.
If the file is an image, then you probably need to open it with the "binary option" enabled (that's adding a "b" in fopen, although not at the beggining of the options list, man, that kept me a few days fixing other stuff thinking it was that).
SoKrA-BTS "Judge not the program I made, but the one I've yet to code"
I say what I say, I mean what I mean.
IDE: emacs + make + gcc and proud of it.