DeleteFile
- Updated2023-02-21
- 2 minute(s) read
DeleteFile
int DeleteFile (char fileName[]);
Purpose
Deletes an existing file or a group of existing files.
![]() |
Caution The Windows SDK also contains a function with the same name. Include windows.h before including utility.h to ensure that there are no compilation errors as a result of this naming conflict. Define the SDK_CONFLICT_PRIORITYSDK_CONFLICT_PRIORITY macro to force LabWindows/CVI to use the Windows SDK implementation of this function. |
Parameters
Input | ||||
Name | Type | Description | ||
fileName | char [] | The pathname of the file to delete. fileName can contain wildcard characters ? and *, in which case DeleteFile deletes all matching files. If you specify an empty string "", DeleteFile deletes the file found by the most recent call to GetFirstFile or GetNextFile.
|
Return Value
Name | Type | Description | ||||||||||||||||
result | int | Result of the delete operation.
|
Additional Information
Library: Utility Library
Include file: utility.h
LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later