ITextWriter.WriteBoolean

Syntax

WriteBoolean(Value: Boolean);

Parameters

Value. Logical value that must be written.

Description

The WriteBoolean method writes a logical value into a text file.

Example

Sub UserProc;
Var
    f: IFileStream;
    TxtWriter: ITextWriter;
Begin
    f := New FileStream.Create("c:\File.txt", FileOpenMode.Create, FileShare.Exclusive);
    TxtWriter := New TextWriter.Create(f);
    TxtWriter.WriteString("Param1:");
    TxtWriter.WriteBoolean(True);
    TxtWriter.Flush;
    Dispose f;
End Sub UserProc;

On executing the example a new text file File.txt is created. The character string and the logical value are written to the file.

See also:

ITextWriter