Moo_FileRead  -  Read a text file.

Moo_FileRead ( sFile );

This functions lets you read a text file and save the input to a variable or text field.

Parameters

NameTypeRequiredDefaultDescription
sFileStringYes The input file to be read.

Return Value

Returns either the contents of the text file, or an error code.

Errors

Error CodeDescription
Moo_FileRead|Err_1Invalid number of arguments.
Moo_FileRead|Err_2Invalid source file input.
Moo_FileRead|Err_3Error opening input file.
Moo_FileRead|Err_4Error creating input buffer.
Moo_FileRead|Err_5Error reading file.

Related Functions