Show contents 

IO > IO Assembly Interfaces > ITextWriter

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
Encoding

The Encoding property determines a text encoding for writing into a file.
WordDelimeter

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

Methods

  Method name Brief description
Flush

The Flush method flushes all buffers of the current recording program and calls immediate saving of all buffered data to a hard drive.
WriteBoolean

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

The WriteChar method writes characters into a text file.
WriteDateTime

The WriteDateTime method writes variables of the DateTime type into a text file.
WriteDouble

The WriteDouble method writes a real number into a text file.
WriteInteger

The WriteInteger method writes an integer number into a text file.
WriteLnBoolean

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

The WriteLnChar method writes characters into a text file with further cursor move to the next string.
WriteLnDateTime

The WriteLnDateTime method writes variables of the DateTime type into a text file with further cursor move to the next string.
WriteLnDouble

The WriteLnDouble method writes a real number into a text file with further cursor move to the next string.
WriteLnInteger

The WriteLnInteger method writes an integer number into a text file with further cursor move to the next string.
WriteLnString

The WriteLnString method writes a character string into a text file with further cursor move to the next string.
WriteString

The WriteString method writes a character string into a text file.
WriteWord

The WriteWord method writes character words into a text file.

See also:

IO Assembly Interfaces