Skip to content
angerangel edited this page Mar 19, 2013 · 1 revision

USAGE

   OPEN spec /new /read /write /seek /allow access

DESCRIPTION

Opens a port; makes a new port from a specification if necessary.

OPEN is an action value.

ARGUMENTS

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

REFINEMENTS

  • /new -- Create new file - if it exists, reset it (truncate)
  • /read -- Open for read access
  • /write -- Open for write access
  • /seek -- Optimize for random access
  • /allow -- Specifies protection attributes
    • access (block!)

#SOURCE

open: make action! [  [
    {Opens a port; makes a new port from a specification if necessary.}
    spec [port! file! url! block!]
    /new {Create new file - if it exists, reset it (truncate)}
    /read "Open for read access"
    /write "Open for write access"
    /seek "Optimize for random access"
    /allow "Specifies protection attributes"
    access [block!]
] ]
Clone this wiki locally
You can’t perform that action at this time.