[REBOL] [port/skip]
From: carl::cybercraft::co::nz at: 29-May-2004 22:02
Are there any known problems with the use of skip with ports? As on files it doesn't
seem to work for me...
>> write %test.txt "abcdefghijkl"
>> port: open/direct/binary %test.txt
>> copy/part port 4
== #{61626364}
>> close port
>> port: open/direct/binary/skip %test.txt 4
>> copy/part port 4
== #{61626364}
>> close port
but does with URLs...
>> port: open/direct/binary http://www.rebol.com/
connecting to: www.rebol.com
>> copy/part port 4
== #{3C48544D}
>> close port
>> port: open/direct/binary/skip http://www.rebol.com/ 4
connecting to: www.rebol.com
>> copy/part port 4
== #{4C3E0A3C}
>> close port
And if I use skip on an already opened port, ie...
port: skip port 4
it'll work if it's a file, but if an URL it'll just hang with nothing returned.
Easy enough to work around this behaviour with files, but does skip with URLs only work
when opening the port? Or am I doing something wrong?
-- Carl Read