/ LJCPHPCodeDoc / LJCTextLib / LJCWriter / FWrite


Parameters
$text - The text value.
$indentCount - The number of tabs to add to the line beginning.

Syntax

PHP
public function FWrite(string $text, int $indentCount = 0)

Writes file text with indents.

Example

PHP
 $webCommonPath = "c:/inetpub/wwwroot/LJCPHPCommon";
 require_once "$webCommonPath/LJCTextLib.php";
 
 $stream = fopen($fileName, "w");
 $writer = new LJCWriter($stream);
 
 $writer->FWrite("This is some text.");

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