hi all, im trying to find out how i can move a file to another location in c++. Is there any kind of function or way i could do this. Ive seen before someone using the system() function to use command prompt style commands like system("cmd,command"); or something like that im not sure whether that is right or not, but i get errors when i try to do it using the dev-c++ compiler. Can someone please help ?

aaa right, thanks a lot :cheesy:

since you are using dev-c++ compiler I assume you are programming on some version of MS-Windows operating system. See win32 api function MoveFile() or MoveFileEx(), which will move a file or an entire directory.

yea i am, windows xp, thanks for the tip