en:code:core:global
This is an old revision of the document!
Table of Contents
Global
These functions are global and can be called without object.
Functions
include
Reads and evaluates a local file at filename.
Syntax
include(filename);
Arguments
- filename - (string) the file to include
Returns
- (mixed) the evaluation result
Exceptions
- (IncludeFileError) the file cannot be read
Example
include("otherScript.acod"); //Read and evaluate a script named "otherScript.acod".
Notes
Auto-inclusion (or circular inclusion) will lead to an infinite loop.
Enumerations
Encoding
Encoding represents a string encoding.
Values
- Native: native encoding
- Ascii: ascii encoding
- Latin1: latin1 encoding
- UTF8: utf-8 encoding
en/code/core/global.1303332386.txt.gz · Last modified: 2021/02/13 11:23 (external edit)