ITextWriter

Description

The ITextWriter interface contains properties and methods for writing data into a text file.

Inheritance Hierarchy

ITextWriter

Comments

To write data in the text format, initialize the stream connected with the place, to which data will be written. The following streams are available:

Pass the created stream to the constructor of the TextWriter class. On working with the constructor the object is created that enables the user to write data in the text format. Use the Encoding property to specify the encoding, in which data will be written. After that it is possible to write data by using various methods of the ITextWriter interface. Call the Flush method to save the written data.

Properties

  Property name Brief description
The Encoding property determines a text encoding for writing into a file.
The WordDelimiters property determines a delimiter between words while writing them into a text file.

Methods

  Method name Brief description
The Flush method flushes all buffers of the current recording program and calls immediate saving of all buffered data to a hard drive.
The WriteBoolean method writes a logical value into a text file.
The WriteChar method writes characters into a text file.
The WriteDateTime method writes variables of the DateTime type into a text file.
The WriteDouble method writes a real number into a text file.
The WriteInteger method writes an integer number into a text file.
The WriteLnBoolean method writes a logical value into a text file with further cursor move to the next string.
The WriteLnChar method writes characters into a text file with further cursor move to the next string.
The WriteLnDateTime method writes variables of the DateTime type into a text file with further cursor move to the next string.
The WriteLnDouble method writes a real number into a text file with further cursor move to the next string.
The WriteLnInteger method writes an integer number into a text file with further cursor move to the next string.
The WriteLnString method writes a character string into a text file with further cursor move to the next string.
The WriteString method writes a character string into a text file.
The WriteWord method writes character words into a text file.

See also:

IO Assembly Interfaces