Rebol 编程/open-events
外观
< 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 -- 在不进行缓冲的情况下以 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!]
]