You are here:

C/C++ File manipulation

Advertisement


Question
I am using windows XP and DEV C++

I want to make a program used in file transfer. How do you copy files to new locations and change thier names using C++  

Answer
Hello Marcus.

The functions you are looking for are CopyFile and MoveFile. The MoveFile does the renaming. The usage is fairly simple. You can look them up in MSDN.

See http://msdn.microsoft.com/en-us/library/aa364232%28VS.85%29.aspx for a all the File Management Functions.

Let me know if you have any more questions.
Best regards.
Zlatko

C

All Answers


Answers by Expert:


Ask Experts

Volunteer


Zlatko

Expertise

I can answer questions about C / C++ programming, software design, algorithms, and interprocess communication. I have access to Microsoft Visual Studio and gcc as my development platforms.

Experience

I have been developing software professionally for UNIX and Microsoft Windows since 1991.

Education/Credentials
I have a Bachelor of Applied Science in Computer Engineering from the University of Waterloo located in Waterloo, Ontario, Canada.

©2012 About.com, a part of The New York Times Company. All rights reserved.