ITextWriter.WriteLnBoolean

Syntax

WriteLnBoolean(Value: Boolean);

Parameters

Value. Logical value that must be written.

Description

The WriteLnBoolean method writes a logical value into a text file with further cursor move to the next string.

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.WriteLnBoolean(True);
    TxtWriter.WriteString("Param2");
    TxtWriter.WriteLnBoolean(False);
    TxtWriter.Flush;
    Dispose f;
End Sub UserProc;

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

See also:

ITextWriter