/ 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
 include_once "LJCRoot.php";
 $prefix = RelativePrefix();
 include_once "$prefix/LJCPHPCommon/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.