AllExperts > C 
Search      
C
Volunteer
Answers to thousands of questions
 Home · More C Questions · Answer Library  · Encyclopedia ·
More C Answers
Question Library

Ask a question about C
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About 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. I regret that I cannot answer questions about Turbo C/C++ graphics.

Experience
I have been developing software professionally in C and C++ 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. I hold the IEEE Certified Software Development Professional designation and SUN Java Programmer and Java Developer credentials.

 
   

You are here:  Experts > Computing/Technology > C/C++ > C > C++ File manipulation

C - C++ File manipulation


Expert: Zlatko - 11/5/2009

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

Add to this Answer   Ask a Question


 
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2008 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.