/ 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
 $webCommonPath = "c:/inetpub/wwwroot/LJCPHPCommon";
 require_once "$webCommonPath/LJCTextLib.php";
 
 $text = "This is some text.";
 LJCWriter::WriteFile($text, "Output.txt");

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