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

[REBOL] Rebol FAQ and Rebol Seek

From: rotenca::telvia::it at: 15-Sep-2002 16:15

Hi, this code: write %myfile.txt "abc" file: open/binary/direct %myfile.txt skip file 1 data: copy/part file 80 does not work under View It freezes the Rebol shell. Am i doing something wrong? It comes from REBOL FAQ: 005 How do I SEEK on a file so I don't have to read the entire file? 1-Jan-2000 Open the file with OPEN/BINARY/DIRECT and use SKIP to go to the selected offset: file: open/binary/direct %myfile.txt skip file 2000 data: copy/part file 80 The above skips the first 2000 bytes of the file and then copies 80 bytes starting from that location into DATA. --- Ciao Romano