Skip to content

File_CreateEmptyFile

The function creates an empty file

File_CreateEmptyFile(sFile, bUnicode) As Boolean

Filename

True creates the file as a Unicode (UTF-16) text file. False creates an ANSI text file.

  • 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.
If bStatus Then bStatus = File_CreateEmptyFile(gsProgramFiles & "\CapaInstaller\Log.log", False)

Scripting Guidelines

File functions Constants Package Property Variables