TextIn
Text file input
Syntax
TextIn options
Options
- -name
- Optional user-defined name for the transform
Inlets
- all
- Read entire file at once
- Type: Unit
- reset
- Return to beginning of file
- Type: Unit
- next
- Read next line
- Type: Unit
- fileIn
- Name of file to read
- Type: String
Outlets
- lineOut
- Line of text from file
- Type: String
- eof
- End-of-file reached
- Type: Unit
Comments
TextIn reads text files line by line. You can process all the lines at once using the "all" inlet, or read
them one at a time using the "next" inlet. The "next" inlet is useful if you want to synchronize file
reading to another event (e.g., from a Ticker transform).
See Also
- TextOut
- FilePicker
- Ticker