If you want to read a flat file or an XML file as one string field, use UniversalDataReader and set the metadata on its first output port as follows:
<Metadata id="Metadata0" previewAttachment="${DATAIN_DIR}/inputFile.txt" previewAttachmentCharset="ISO-8859-1"> <Record name="recordName1" previewAttachment="${DATAIN_DIR}/inputFile.txt" previewAttachmentCharset="ISO-8859-1" type="delimited"> <Field eofAsDelimiter="true" name="field1" type="string"/> </Record> </Metadata>
true. This way the whole file will be read as one record consisting of one field of string data type.