import-list-from-text-file
import-list-from-text-file
adaptor imports a list from a text file.
The character encoding can be changed using the encoding option in the adaptor, if unspecified defaults to utf8 encoding
Inputs
file
Type: file
Required: Yes
The text file to be converted.
encoding
Type: text
Required: No
The character encoding of the output text
. If unspecified, defaults to utf8
.
separator
Type: text
Required: No
Character used as a line separator. If unspecified, defaults to (newline).
trim
Type: boolean
Required: No
Specifies whether to ignore whitespace characters immediately around the separator. If unspecified, defaults to True
.
Outputs
list
Type: list
A list of values.
Examples
Example 1: Default behaviour.
Inputs:
file:
example.txt
encoding:
null (empty)
separator:
null (empty)
trim:
null (empty)
Outputs:
list
:
January
February
March
April
-> Imported a list from the text file example.txt
into Data-flo.
Example 2: Import list from text file with a ,
separator.
,
separator.Inputs:
file:
example.txt
encoding:
null (empty)
separator:
,
trim:
null (empty)
Outputs:
list
:
January
February
March
April
-> Imported a comma separated list from the text file example.txt
into Data-flo.
Last updated