For manipulating files and directories in general, have a look at the File System Adapter. |
The handling of different flat file types is shown in the example models referenced below and explained on the related pages.
A flat file is a file that contains no information about the structure of the data. The most simple flat file is a position delimited file without header or trailing lines.
More complex flat files can have a field delimiter, or can be of hierarchical structure, or can have a pattern to delimit the attributes.
A program that wants to access such a file needs information about the file structure, so you have to provide this in your model via a class diagram. The E2E Flat File Definition Importer of the E2E Builder allows to import flat file descriptions and generates a class model representing the flat file record structure. Alternatively, the flat file structure can be drawn manually as a class diagram or imported from an XML schema.
Flat files can be parsed to a data structure or composed from such a structure to a Blob or to the file system.