File.read_text
read_textencoding on_problems
Aliases: load text
, open text
Documentation
Reads the whole file into a Text
, with specified encoding.
Arguments
encoding
: The text encoding to decode the file with. Defaults to UTF-8.on_problems
: Specifies the behavior when a problem occurs during the function. By default, a warning is issued, but the operation proceeds. If set toReport_Error
, the operation fails with a dataflow error. If set toIgnore
, the operation proceeds without errors or warnings.
Examples
Read the contents of the file.
import Standard.Examples
example_read = Examples.csv.read