I think you want file-position http://docs.racket-lang.org/reference/port-buffers.html#(def._((quote._~23~25kernel)._file-position))
Jay On Tue, Sep 28, 2010 at 3:15 PM, John Clements <cleme...@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 <j...@cs.byu.edu> Assistant Professor / Brigham Young University http://teammccarthy.org/jay "The glory of God is Intelligence" - D&C 93 _________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev