Function: ACF_CompileFile

Compile a text with ACF Source Code and generate a binary Base64 encoded package that can be later installed using ACF_Install_base64Text or, if saved to a file, use ACF_InstallFile.

This function is similar to ACF_Compile, but it takes input from a disk file and produces output on another file. The name of the compiled disk file will be the same as the source, but with the ".dsComp" extension.

Upon successful compilation, the compiled package loads automatically, making the functions within it ready for execution.

Prototype:


ACF_CompileFile( SourceFile {;Verbose Level} )

Parameters:

Parameter name Type Description
SourceFile string The path to the source file containing the ACF package to compile
Verbose Level int Debug levels from 0 to 5. 0 = only list source code compiled, 1 to 5 correspond to different levels of debug information from the compiler.

Return value: Type TEXT : The path to the compiled package. It is placed in the same folder as the source file, with the extension ".dsComp".

Example:


Set Variable [ $res; Value:ACF_CompileFile( Preferences::SourcePath; 0 ) ]

References: No references