file-to-text

Caution: Large text values require a lot of power in Data-flo, and can affect performance. Converting large files to text should only be done when necessary.

Arguments

Inputs:

file: The file you want to convert to text.

encoding: The method of converting the file's data. Supported encodings are: ascii, base64, binary, hex, ucs2, utf8, or latin1 Defaults to utf8 (the most common encoding on the web).

Output:

text: The contents of the file as text, ready for feeding into the arguments of other adaptors.

Example

Possible use cases

  • import a Newick file (NWK) to use for the 'tree' argument in create-microreact-project

  • Use the "Bind to a Data-flo input" option to import a file from a user's computer.

Last updated