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: | Returns a 1 |
Failure: | Returns a 0 |
@Error: | 0 = No error. |
1 = Error opening specified file | |
2 = File could not be written to |
Remarks
Related
..\Functions\FileOpen
Example
#include
If Not _FileCreate("error.log") Then
MsgBox(4096,"Error", " Error Creating/Resetting log. error:" & @error)
EndIf