angerangel edited this page Jan 7, 2013 · 1 revision

USAGE

   READ source /part length /seek index /string /lines

DESCRIPTION

Read from a file, URL, or other port.

READ is an action value.

ARGUMENTS

  • source (port! file! url! block!)

REFINEMENTS

  • /part -- Partial read a given number of units (source relative)
    • length (number!)
  • /seek -- Read from a specific position (source relative)
    • index (number!)
  • /string -- Convert UTF and line terminators to standard text string
  • /lines -- Convert to block of strings (implies /string)

#SOURCE

read: make action! [  [
    "Read from a file, URL, or other port."
    source [port! file! url! block!]
    /part {Partial read a given number of units (source relative)}
    length [number!]
    /seek "Read from a specific position (source relative)"
    index [number!]
    /string {Convert UTF and line terminators to standard text string}
    /lines "Convert to block of strings (implies /string)"
] ]
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.