forked from rebol/rebol
-
Notifications
You must be signed in to change notification settings - Fork 2
Write
angerangel edited this page Mar 20, 2013
·
1 revision
WRITE destination data /part length /seek index /append /allow access /lines
Writes to a file, URL, or port - auto-converts text strings.
WRITE is an action value.
- destination (port! file! url! block!)
- data -- Data to write (non-binary converts to UTF-8) (binary! string! block!)
-
/part -- Partial write a given number of units
- length (number!)
-
/seek -- Write at a specific position
- index (number!)
- /append -- Write data at end of file
-
/allow -- Specifies protection attributes
- access (block!)
- /lines -- Write each value in a block as a separate line
#SOURCE
write: make action! [ [
{Writes to a file, URL, or port - auto-converts text strings.}
destination [port! file! url! block!]
data [binary! string! block!] "Data to write (non-binary converts to UTF-8)"
/part "Partial write a given number of units"
length [number!]
/seek "Write at a specific position"
index [number!]
/append "Write data at end of file"
/allow "Specifies protection attributes"
access [block!]
/lines "Write each value in a block as a separate line"
] ]