Skip to content
Back to formatted view

Raw Message

Message-ID: <gukd0u$1n7$1@ger.gmane.org>
Date: 2009-05-15T18:41:35Z
From: Johannes Graumann
Subject: readBin: read from defined offset TO defined offset?

Thanks guys!

Duncan's hints regarding "character" (which I was naturally using ;0) and 
the double "readBin" solved my problem - I'm extracting an index from a 
REALLY big XML file to get fast direct access to subsections, so that I only 
have to parse them rather than the whole thing (only SAX-style passing would 
be possible, since there's no way the thing will fit into memory).

Thanks again, Joh

Johannes Graumann wrote:

> Hello,
> 
> With the help of "seek" I can start "readBin" from any byte offset within
> my file that I deem appropriate.
> What I would like to do is to be able to define the endpoint of that read
> as well. Is there any solution to that already out there?
> 
> Thanks for any hints, Joh