[REBOL] Re: Problems with open/direct/binary
From: sunandadh::aol::com at: 23-Dec-2002 11:26
> 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."
/mode "Block of above refinements."
/custom "Allows special refinements."
/skip "Skips a number of bytes."