Skip to main content

Read text

Read a text file.

Command in the File toolkit · id ooa.file/read_text · 3 inputs (1 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
PathFileYesFile path.
EncodingStringNoutf-8Text encoding, e.g. utf-8, utf-16le, windows-1252; auto reads a byte order mark, else takes UTF-8 when it fits, else windows-1252.
TrimStringNononeRemove spaces and line breaks at the start, the end or both ends of the text.

Outputs​

OutputTypeWhat it is
textStringFile content.