Hi: > You will find differences of opinions on the best work-around, but for > getting an unbuffered binary file, the way that I use works > as follows: > > port: open/direct/binary %//rebol/view/nyc.jpg > copy/part p 100 ;throws away the first 100 bytes > contents: copy p ;get rest of file > close port
Thanks. Unfortunately, I'm trying to stream large files across the network; the time to throw away the first 4 megs of the file would really slow things down. I guess I can prototype the streaming protocol in C and just control it from Rebol. > > The skip-as-a-refinement-bug has likely been reported to > feedback, but one > more time wouldn't hurt. > :-) Already did :-) > > ... > > Using SKIP as a command didn't work all that much better. > (the example > > in the new FAQ basically hangs, using up 100% of the CPU) > > Now that I've not seen before. In what way were you using > it? Here is one > way: > > data: [1 2 3 4] ; yields == [1 2 3 4] > data: skip data 2 ; yields == [3 4] > data ; yields == [3 4] > data: head data ; yields == [1 2 3 4] > > Please feel free to ask further clarification, especially if > someone else > doesn't also answer. The FAQ example shows using a command sequence like file: open/binary/direct %myfile.txt skip file 2000 Which just hangs on the skip command. Andy -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
