angerangel edited this page Jan 7, 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.
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.