AttributeFileReader
Reads the contents of a file and stores them as the value for the specified attribute.
Input Ports
This transformer accepts any feature.
Output Ports
All incoming features with an additional new attribute whose value is the contents of a file.
Note: Feature order may change in relation to other output ports. Feature order per port is maintained.
Parameters
The name of the attribute whose value is to be read from the file. The entire contents of the file are stored in this attribute of the feature.
Name of the file from which data is to be read. The filename can be taken either from the value of an attribute or from a fixed constant name.
Specifies the source file's character encoding. The default encoding is Binary (fme-binary), which is not appropriate for text files.
The most common text encodings are Windows Latin-1 (windows-1252) and Unicode 8-bit (utf-8). If the text contains special characters, choosing the wrong encoding may result in a garbled value being assigned to the Destination Attribute.
Note that if necessary, full pathnames can be created from existing attribute values by using the StringConcatenator to prepend folder names and/or append extensions prior to using this transformer. The resulting attribute can then be used to specify the source file.
Editing Transformer Parameters
Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, click beside the applicable parameter. For more information, see Transformer Parameter Menu Options.
Transformer Categories
FME Community
The FME Community is the place for demos, how-tos, articles, FAQs, and more. Get answers to your questions, learn from other users, and suggest, vote, and comment on new features.
Search for samples and information about this transformer on the FME Community.