Rebol 编程/open
外观
< Rebol 编程
OPEN spec /binary /string /direct /seek /new /read /write /no-wait /lines /with end-of-line /allow access /mode args /custom params /skip length
打开新的端口连接。
OPEN 是一个本地值。
- spec -- (类型:文件 URL 端口 对象 块)
- /binary -- 精确保留内容。
- /string -- 翻译所有行终止符。
- /direct -- 在不缓冲的情况下打开端口。
- /seek -- 在不缓冲的情况下以搜索模式打开端口。
- /new -- 创建文件。(不必事先存在。)
- /read -- 仅读。禁用写操作。
- /write -- 仅写。禁用读操作。
- /no-wait -- 如果没有数据,则立即返回而不等待。
- /lines -- 将数据处理为行。
- /with -- 指定备用行终止符。
- end-of-line -- (类型:字符 字符串)
- /allow -- 在创建时指定保护属性。
- access -- (类型:块)
- /mode -- 上述细化的块。
- args -- (类型:块)
- /custom -- 允许特殊细化。
- params -- (类型:块)
- /skip -- 跳过一定数量的字节。
- length -- (类型:数字)
open: native[
"Opens a new port connection."
spec [file! url! port! object! block!]
/binary "Preserves contents exactly."
/string "Translates all line terminators."
/direct "Opens the port without buffering."
/seek "Opens port in seek mode without buffering."
/new "Creates a file. (Need not already exist.)"
/read "Read only. Disables write operations."
/write "Write only. Disables read operations."
/no-wait "Returns immediately without waiting if no data."
/lines "Handles data as lines."
/with "Specifies alternate line termination."
end-of-line [char! string!]
/allow "Specifies the protection attributes when created."
access [block!]
/mode "Block of above refinements."
args [block!]
/custom "Allows special refinements."
params [block!]
/skip "Skips a number of bytes."
length [number!]
]