The flat file type (.flat) is used with ASCII files (.asc), which contain fixed-length fields and optional line ends to mark the end of records. The actual ASCII data does not contain any information about the structure of fields nor the data types of those fields. For information on data types, see Data Types.
Use an Input Data Tool and Output Data Tool to read and write .flat files. If you are reading an unknown file type into Alteryx and have selected the Read it as a fixed width text file option, see Flat File Layout.
The .flat file is written in XML and can be modified to describe information about the structure and data types of fields. The root element is flatfile with a version attribute, which has to be "1". The flatfile element contains the following child elements:
Byte is an unsigned number between 0-255, so the size of byte is 3 characters. See Data Types for descriptions and examples of these types.
<flatfile version="1"> <file path="data.asc" eoltype="lf" trimWhiteSpace="f" allowShortLines="t" /> <fields> <field name="KEY " type="String" length="5" /> <field name="NAME" type="String" length="12" /> <field name="VALUE" type="Double" length="20" /> </fields> </flatfile>
©2018 Alteryx, Inc., all rights reserved. Allocate®, Alteryx®, Guzzler®, and Solocast® are registered trademarks of Alteryx, Inc.