Deletes the specified file if it exists.
Assembly: log4net (in log4net.dll) Version: 188.8.131.52-.NET 4.0
protected void DeleteFile( string fileName )
Protected Sub DeleteFile ( fileName As String )
protected: void DeleteFile( String^ fileName )
member DeleteFile : fileName : string -> unit
- Type: SystemString
The file to delete.
Delete a file if is exists. The file is first moved to a new filename then deleted. This allows the file to be removed even when it cannot be deleted, but it still can be moved.