[REBOL] Re: Problems with open/direct/binary
From: sunandadh::aol::com at: 23-Dec-2002 11:26
Hugues
> Anyone knows what happens
is it possible that somewhere else in the script you have redefined 'open? eg:
open: %my-file instead of open my-file
Check with source -- an unmodifed 'open should look like:
>> source open
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."
/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!]
]
Sunanda.