Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Skip out to lunch on files ?

From: andy:flyingcat at: 3-Oct-2002 12:15

Hi: Is it my imagination, or is skip (both as a command and as a refinement) completely out to lunch when used on files ? I was trying to use rebol to stream a file across a network; and the two obvious methods didn't seem to work. The presense or absence of the binary and direct refinements doesn't seem to make a difference. file: open/binary/skip %testfile.mpg 1000 print to-string copy/part file 100 Always gives me the first 100 bytes of the file. There doesn't seem to be a difference in using read, either, ie data: read/binary/skip/part %testfile.mpg 1000 100 Always gives me the first 100 bytes of data --- 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) This is on both and If this is known, is there a good work around ? Andy