
July 10th, 2007, 02:44 PM
|
 |
Contributing User
|
|
Join Date: Jan 2003
Location: USA
|
|
|
The Win32 API does have a DeleteFile() as well as a CopyFile, a MoveFile, a CreateDirectory, and a RemoveDirectory.
The more traditional functions are more OS-dependent. Traditionally, the command to delete a file was unlink(). The reason for the name is because it comes from UNIX where you can create any number of symbolic links to the same file or directory, so most of the time that you would "delete a file" you'd actually be removing a link to a file, leaving the file itself alone, hence you'd actually be removing a link or "unlink"'ing.
MS Visual C++ still supports unlink() in all versions of its C runtime library, though it prefaces it with an underscore: _unlink.
|