Function Reference


_FileCreate

Creates or zero's out the length of the file specified

#include <File.au3>
_FileCreate ( $sFilePath )

Parameters

$sFilePath Path and filename of the file to be created.

Return Value

Success: 1.
Failure: 0 and sets the @error flag to non-zero.
@error: 1 - Error opening specified file
2 - File could not be written to

Example

#include <File.au3>
#include <MsgBoxConstants.au3>

If Not _FileCreate("error.log") Then
    MsgBox($MB_SYSTEMMODAL, "Error", " Error Creating/Resetting log.      error:" & @error)
EndIf