Working with Files

Text Control uses 8 different file formats:

Using RTF, HTML, Word or unformatted text is very easy: Just specify the format you want to use as a parameter of the Load or Save method.

Using RTF, HTML, Word and unformatted text, you can only read or write the contents of a single Text Control from or to a file. Using the native file format, however, you can write a file header prior to saving the Text Control data, or even write the contents of several Text Controls to one file.

The Mail Merge sample program shows you how to write the contents of Text Control and other data to a single file. The TXWords sample shows you how to write a file header prior to the Text Control's data and how to use RTF, HTML, Word and unformatted text.