The Internal USFile Component

Previous Next

See Also

The internal USFile component provides basic file-IO functionality. Text files can be kept open for a period longer than a single statement, making it possible to write to the file using multiple write statements. It is also possible to append the output of an XML.Export statement to a file which is opened with this USFile component.

The USFile component provides methods to:

· Open a text file for reading, writing, or appending.


· Write text or binary data to a file.


· Read lines or a complete binary or text file.


· Check if the end of a file has been reached when reading lines.


· Close a file.

The supported methods are described in the related topics listed below, with examples.

Related Topics

The USFile Open Method

The USFile Close Method

The USFile ReadLine Method

The USFile EOF Method

The USFile Write Method

The USFile ReadTextFile Method

The USFile ReadBinaryFile Method

The USFile WriteBinaryFile Method