forked from rebol/rebol
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
angerangel edited this page Mar 19, 2013
·
1 revision
OPEN spec /new /read /write /seek /allow access
Opens a port; makes a new port from a specification if necessary.
OPEN is an action value.
- 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!)
#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!]
] ]