Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

best way to copy a file

Status
Not open for further replies.

consistomagus

Programmer
Aug 28, 2002
8
0
0
US
I need to copy a file from one directory to another in C++. I will have no idea what kind of file it is so I can't use a read file and then write the file. Is there a simple function that I can pass one path and filename to another path to copy it?

Thanks,
Kevin
 
Look at the CopyFile/CopyFileEx API functions.

Hope this helps. Happy coding! :) *~-> EOR Candy <-~*
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top