Subj : Re: Copying Files To : borland.public.cpp.borlandcpp From : waking@idirect.com (Wayne A. King) Date : Thu Jul 10 2003 01:41 pm On Thu, 10 Jul 2003 10:42:16 +0100, Georges wrote: >The only way I know of copying files from one directory to another in C >or C++ is to use the system command >Is there any other C/C++ function that would to the same job ? The concept of "directories" or "folders" doesn't exist in ANSI/ISO Standard C or C++. You have to use functions specific to the operating system and/or compiler. Look at fopen(), fread(), fwrite(), fclose(), iostreams, fstream, ifstream, ofstream, findfirst(), findnext(), etc. For an example using open(), read(), write(), close() from io.h see Wb_Fcopy.C Fast file copy Mv.C Move files at http://www.eti.pg.gda.pl/KATEDRY/kecs/lab-cpp/snippets/ -- Wayne A. King (ba994@torfree.net, wayne.king@ablelink.org, waking@idirect.com, Wayne_A_King@compuserve.com) .