![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Feb 2006
Location: India
Posts: 25
Rep Power: 0
![]() |
Function to delete / rename a file
rename() and remove() functions are used in C.Pls tell the functions to rename and delete a file in C++!
|
|
|
|
|
|
#2 |
|
Hobbyist Programmer
Join Date: Oct 2005
Posts: 134
Rep Power: 3
![]() |
Actually, there is no C++ specific way. You use the same C functions, except include <cstdio> rather than <stdio.h> and rename() and remove() will be in the "std" namspace.
|
|
|
|
|
|
#3 |
|
Programmer
Join Date: Jan 2005
Location: Albany, NY
Posts: 43
Rep Power: 0
![]() |
Depending on your targeted OS (assuming you are working with windows or linux), you could aways use the system(); function.
__________________
meh... |
|
|
|
|
|
#4 | |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|