[racket-dev] random-access file reading

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Tue Sep 28 17:43:37 EDT 2010

I think you want file-position



On Tue, Sep 28, 2010 at 3:15 PM, John Clements
<clements at brinckerhoff.org> wrote:
> 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
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/dev

Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University

"The glory of God is Intelligence" - D&C 93

Posted on the dev mailing list.