Rebol 编程/write
外观
< Rebol 编程
WRITE 目标值 /binary /string /direct /append /no-wait /lines /part 大小 /with 行尾 /allow 访问 /mode 参数 /custom 参数
写入文件、URL 或端口规范(块或对象)。
WRITE 是一个原生值。
- 目标 -- (类型:文件 URL 对象 块)
- 值 -- (类型:任何)
- /binary -- 保留内容完全一致。
- /string -- 翻译所有行终止符。
- /direct -- 在没有缓冲的情况下打开端口。
- /append -- 写入现有文件的末尾。
- /no-wait -- 如果没有数据,则立即返回,而不等待。
- /lines -- 将数据处理为行。
- /part -- 读取指定数量的数据。
- 大小 -- (类型:数字)
- /with -- 指定备用行终止符。
- 行尾 -- (类型:字符 字符串)
- /allow -- 创建时指定保护属性。
- 访问 -- (类型:块)
- /mode -- 以上细化的块。
- 参数 -- (类型:块)
- /custom -- 允许特殊细化。
- 参数 -- (类型:块)
write: native[
{Writes to a file, url, or port-spec (block or object).}
destination [file! url! object! block!]
value
/binary "Preserves contents exactly."
/string "Translates all line terminators."
/direct "Opens the port without buffering."
/append "Writes to the end of an existing file."
/no-wait "Returns immediately without waiting if no data."
/lines "Handles data as lines."
/part "Reads a specified amount of data."
size [number!]
/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!]
]