LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Copying Files from one source to a destination (https://www.linuxquestions.org/questions/programming-9/copying-files-from-one-source-to-a-destination-509147/)

vgdeveloper05 12-10-2006 01:44 PM

Copying Files from one source to a destination
 
Hey everyone I was wondering if anyone would know an effective method to copy a folder from a source directory to a destination directoy using C++. I was thinking that using command line commands would be the most effective method but this may be flawed. I'm not looking for an answer with code I'm just looking for ideas. Thanks in advance.

Mara 12-10-2006 02:28 PM

Shell command is one solution. The other one is to write it in C/C++. You have opendir/readdir/closedir to deal with directories, so you can get access to every file, then open orginal one and the copy and rewrite the whole content.


All times are GMT -5. The time now is 07:52 PM.