DriveWorks Pro 16: Export A Table Array To A Text File [send feedback...]

Export A Table Array To A Text File

This Specification Flow Task exports a Table Array to an existing text file.

This Task will NOT create a file. You must specify an already existing text file with its extension.

Properties

Property NameDescription
TitleChanges the Title (not the name) of the task.
Target File NameFile name of the target text file (Full path plus extension).
Array ValueA Table array value, such as the result of a QueryDataValues function.
Include HeaderTRUE to include first row, FALSE to exclude.
OverwriteTRUE to overwrite the file if it exists.

Example

When this Task is added the properties are static. To be able to build rules on a static properties see How To: Change A Static Property To A Dynamic Property.

Property NameExample RuleExample ResultMeaning
Target File Name"C:\MyDocuemnts\Exports\ArrayText.txt"C:\MyDocuemnts\Exports\ArrayText.txtThis is the Target location of the text file that is to be written to.
Array ValueDWVariableTableArrayDWVariableTableArrayThis is a Variable where the Array value to use is stored
Include HeaderTRUETRUETRUE will include the headers when exporting the Array into a text file.
OverwriteTRUETRUETRUE will overwrite the file if it exists.

Example Data

Array
{"Id","FirstName","SecondName","Age";"1","Dave","Smith","34";"2","John","McClane","56";"3","Matt","Jackson","27";
"4","Rob","Holding","23";"5","Dan","Davis","30";"6","Sam","Jones","42"}

Example Text File

Created Text File

Id,FirstName,SecondName,Age

1,Dave,Smith,34

2,John,McClane,56

3,Matt,Jackson,27

4,Rob,Holding,23

5,Dan,Davis,30

6,Sam,Jones,42

Table of Contents