# FdoIoTextWriter Class Reference

`#include <TextWriter.h>`

List of all members.

## Detailed Description

FdoIoTextWriter writes Unicode wide character text to a binary stream. The text is written in UTF8 format.

Definition at line 27 of file TextWriter.h.

## Public Member Functions
FDO_API_COMMON FdoIoStream * | GetStream ()
| Gets the underlying stream. If a stream was passed to this object then this stream is returned. Otherwise, an auto-generated stream (wrapped around the file name that was passed to this object) is returned.
FDO_API_COMMON void | Write (FdoString *string)
| Writes to this text writer. The text is written in UTF8 format.
FDO_API_COMMON void | WriteLine (FdoString *string)
| Same as Write(), except that a carriage return (n) is appended to the text.
## Static Public Member Functions
static FDO_API_COMMON FdoIoTextWriter * | Create (FdoIoStream *stream)
| Constructs a text writer on a stream.
static FDO_API_COMMON FdoIoTextWriter * | Create (FdoString *fileName)
| Constructs a text writer on a file.

The documentation for this class was generated from the following file:

- TextWriter.h