ReadTextFile

MacroModule

author

Volker Dicken

package

FMEwork/ReleaseMeVis

definition

ReadTextFile.def

see also

LocalFileName

keywords

view, file, ascii, text, comment, help, string, resolve, path

Purpose

Simple scriptOnly module that will read the content of a text file into a string.

Path variables like $(NETWORK) will be expanded and are available in the appropriately named field.

If autoUpdate is true the file contends will be loaded directly and not require to press update.

If autoClear is true, an empty filename entry will clear the content string similar to what happens when trying to load an invalid file name.

Usage

Just select some text file.

Tips

Try to avoid opening large binary files with this module.

Windows

Default Panel

../../../Modules/Macros/Helpers/mhelp/Images/Screenshots/ReadTextFile._default.png

Parameter Fields

Field Index

Auto: Bool

AutoClear: Bool

Expanded File Name: String

File Content: String

File Name: String

Print Debug Information: Bool

Update: Trigger

Visible Fields

File Name

name: fileName, type: String

File name possibly containing variable like $(NETWORK)

Expanded File Name

name: expandedFileName, type: String, persistent: no

The expanded filename.

File Content

name: fileContent, type: String

The contents of that file.

Update

name: update, type: Trigger

Update string from file.

Auto

name: autoUpdate, type: Bool, default: TRUE

Auto-update string from file whenever the file name changes.

AutoClear

name: autoClear, type: Bool, default: FALSE