New to Telerik Document ProcessingStart a free 30-day trial

Settings

Updated on Apr 27, 2026

TxtFormatProvider allows to import and export TXT documents. Additionally, there are a number of settings that allow you to modify the import/export. The current article outlines the available settings.

TxtFormatProvider exposes a Settings property of type TxtSettings. This allows you to specify the following:

  • Delimiter: Gets or sets the list separator. By default the TxtFormatProvider class imports and exports files using the list separator specified by the current culture of the system.

  • ShouldExportEmptyValues: Gets or sets a value indicating whether the empty values are exported.

  • Encoding: Gets or sets the encoding.

  • Quote: Gets or sets the quote symbol

  • HasHeaderRow: Specifies whether the document has a header row. The default value is false.

Example 1 shows how to create and specify a particular setting to a TxtFormatProvider.

Example 1: Use TxtSettings

C#
TxtFormatProvider provider = new TxtFormatProvider();
provider.Settings.Delimiter = ';';
provider.Settings.Quote = '^';
provider.Settings.HasHeaderRow = true;
Not finding the help you need?
Contact Support