angerangel edited this page Jan 7, 2013 · 1 revision

USAGE

   WRITE destination data /part length /seek index /append /allow access /lines

DESCRIPTION

Writes to a file, URL, or port - auto-converts text strings.

WRITE is an action value.

ARGUMENTS

  • destination (port! file! url! block!)
  • data -- Data to write (non-binary converts to UTF-8) (binary! string! block!)

REFINEMENTS

  • /part -- Partial write a given number of units
    • length (number!)
  • /seek -- Write at a specific position
    • index (number!)
  • /append -- Write data at end of file
  • /allow -- Specifies protection attributes
    • access (block!)
  • /lines -- Write each value in a block as a separate line

#SOURCE

write: make action! [  [
    {Writes to a file, URL, or port - auto-converts text strings.}
    destination [port! file! url! block!]
    data [binary! string! block!] "Data to write (non-binary converts to UTF-8)"
    /part "Partial write a given number of units"
    length [number!]
    /seek "Write at a specific position"
    index [number!]
    /append "Write data at end of file"
    /allow "Specifies protection attributes"
    access [block!]
    /lines "Write each value in a block as a separate line"
] ]
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.