[racket-dev] random-access file reading

From: John Clements (clements at brinckerhoff.org)
Date: Tue Sep 28 17:15:28 EDT 2010

I want to read a chunk from the middle of a 50-megabyte file.  As far as I can see, there are no random-access file primitives currently in DrRacket.  Also, I don't see a "skip-bytes", so it looks like I should be allocating a junk buffer and then repeatedly calling read-bytes to read the skipped portion into the junk buffer.  

Tell me if there's a simpler way to do this; doc pointers always appreciated.

John

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4669 bytes
Desc: not available
URL: <http://lists.racket-lang.org/dev/archive/attachments/20100928/e60f1480/attachment.p7s>

Posted on the dev mailing list.