Skip to main content

write

write(
@data ## anything (required)
@path ## symbol (required)
@escape 3
@wrap 0
@indent 'tab'
@maxdecimals 10
@maxdepth -1
@negativeoctaves 0
@parens 0
) -> null

Writes data into disk in either .txt or native .llll format.


Arguments

  • @data [anything]: Data to write. (required)
  • @path [symbol]: Output file path. (required)
  • @escape [int]: Escaping style (default: 3).
    • 0: None
    • 1: Backtick
    • 2: Double quotes
    • 3: Smart
  • @wrap [int]: Column at which the text should be hard-wrapped in .txt format. 0 means no wrapping (default: 0).
  • @indent [symbol/int]: If value is integer, number of spaces per depth level used for indentation. (default: 'tab').
  • @maxdecimals [int]: Maximum number of decimal digits for .txt format. (default: 10).
  • @maxdepth [int]: Maximum depth level at which text indentation is performed for .txt format. (default: -1).
  • @negativeoctaves [int]: Use negative octaves, when in .txt format. (default: 0).
    • 0: Off
    • 1: On
  • @parens [int]: Use parens. (default: 0).
    • 0: Off
    • 1: On