OutSCIRT

About
Documentation
Downloads

O__dataWrite

Purpose: Writes the contents of a string into a file.

Type: Server-side function

Inputs:

  • $filePath: The path to the file to be written.
  • $inputString: The string input.

Outputs: The contents of the inputted string are written to a file.

Use Case: Call O__dataWrite whenever you need to save a new file or overwrite an existing file with the contents of the provided string.

Examples:

  • Save file with direct string input: O__dataWrite("/path/to/my/file.txt","my string contents");
  • Save file with string variable: O__dataWrite("/path/to/my/file.txt",$myPreviouslyDefinedString);

Version Documented: 20180409