--- title: "$FileContents" ---
This is generated from the built in components of Otter 2024.0, and may be different than what you have installed (especially if you have extensions); go to [Gear Icon] -> Administration -> Functions within your Otter instance to see exactly what operations are available.

Returns the contents of a file on the current server.

Script usage:

$FileContents(name, [maxLength])

Parameters:

NameDescription
nameThe path of the file.
maxLengthThe maximum length (in characters) of the file to read.