forked from rebol/rebol
-
Notifications
You must be signed in to change notification settings - Fork 2
Read
angerangel edited this page Mar 19, 2013
·
1 revision
READ source /part length /seek index /string /lines
Read from a file, URL, or other port.
READ is an action value.
- 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)
#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)"
] ]