DeleteAndRename
int DeleteAndRename (const char sourcePathname[], const char destinationPathname[]);
Purpose
Deletes the file identified by destinationPathname. Renames the file identified by sourcePathname to destinationPathname.
Parameters
Input | ||
Name | Type | Description |
sourcePathname | const char[] | The pathname of the file to rename. If it is not an absolute pathname, the file is located relative to the current working directory. |
destinationPathname | const char[] | The pathname of the file to delete and the pathname to rename the file currently identified by sourcePathname. |
Return Value
Name | Type | Description | ||||||||||||||||||
status | int | If the function was successful, it returns 0. Otherwise, it returns a negative error code. The error codes that can occur and the header files in which they are defined are listed below:
|
Additional Information
Library: Programmer's Toolbox
Include file: toolbox\toolbox.h
LabWindows/CVI compatibility: LabWindows/CVI 4.0 and later