OutSCIRT

About
Documentation
Downloads

O__dataRead

Purpose: Reads a file and returns the contents as a string.

Type: Server-side function

Inputs:

  • $filePath: The path to the file to be read.

Outputs: The contents of the read file are returned as a string.

Use Case: Call O__dataRead whenever you need to load the contents of a file into a variable.

Examples:

  • Load a file into a string variable: $myString = O__dataRead("/path/to/my/file.txt");

Version Documented: 20181010