File_CreateEmptyFile
Description
Section titled “Description”The function creates an empty file
Syntax
Section titled “Syntax”File_CreateEmptyFile(sFile, bUnicode) As Boolean
Parameters
Section titled “Parameters”sFile (String)
Section titled “sFile (String)”Filename
bUnicode (Boolean)
Section titled “bUnicode (Boolean)”True creates the file as a Unicode (UTF-16) text file. False creates an ANSI text file.
Remarks
Section titled “Remarks”- If the file already exists, it’s overwritten with an empty file.
- The folder must exist. The function doesn’t create folders. Use File_CreateDirectory first if needed.
Example
Section titled “Example”If bStatus Then bStatus = File_CreateEmptyFile(gsProgramFiles & "\CapaInstaller\Log.log", False)