Re: [racket-dev] random-access file reading

2010-09-28 Thread Andreas Rottmann
John Clements writes: > 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

Re: [racket-dev] random-access file reading

2010-09-28 Thread Jay McCarthy
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 wrote: > I want to read a chunk from the middle of a 50-megabyte file.  As far as I > can see, there are no ra

[racket-dev] random-access file reading

2010-09-28 Thread John Clements
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 skippe