ITextWriter.WordDelimeter

Syntax

WordDelimeter: String;

Description

The WordDelimiters property determines a delimiter between words while writing them into a text file.

Comments

The space is set by default as a delimiter in that property. The delimiter is added automatically after the text written with the WriteWord method.

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.WordDelimeter := "/";
    TxtWriter.WriteWord("Word 1");
    TxtWriter.WriteWord("Word 2");
    TxtWriter.Flush;
    Dispose f;
End Sub UserProc;

On executing the example a new text file File.txt is created. Two words are written to the file. The specified delimiter is added after each word.

See also:

ITextWriter