/ LJCPHPCodeDoc / LJCTextLib / LJCWriter / WriteFile


Parameters
$text - The text value.
$fileSpec - The file specification.

Syntax

PHP
public static function WriteFile(string $text, string $fileSpec)

Writes a text file.

Example

PHP
 include_once "LJCRoot.php";
 $prefix = RelativePrefix();
 include_once "$prefix/LJCPHPCommon/LJCTextLib.php";
 
 $text = "This is some text.";
 LJCWriter::WriteFile($text, "Output.txt");

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.