Skip to content
angerangel edited this page Mar 19, 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