   How to copy files?
  Hi there,I want to copy a HTML and a SWF file but how to do it?can u please help me?Thanks! 
  Help us first.. By telling1. what OS are you using?2. what programming language are you using?3. do you want to copy them from the net or something?4. where do you want to copy them? To your hard drive?Your post was missing some info... ;  I want to do it in c++and I want to copy them from one folder to another one. ;  Using C++ and console mode:system("copy C:\\folder1\\somefile.html \\A C:\\folder2\\somefile.html \\A");   EDIT: just realised there's probably a function to do thisin the C std library for...Using C++ and the Win32 API:CopyFile("C:\\folder1\\somefile.html","C:\\folder2\\somefile.html",false);   -If you see this image I may or may not be online My website [edited by - brassfish89 on August 4, 2003 6:42:47 PM];  copying files is OS-specific. ;  No it isn''t. You can copy files just fine with the standard library.Use a std::ifstream (source file) and std::ofstream (destination file). Open both in binary mode. Read a chunk of data in from the ifstream and write it to the ofstream.And I don''t really wish to get into C++ standards war as it often erupts on the newsgroups. I can''t even come up with an example file where this won''t work. 