Re: [R] readBin: read from defined offset TO defined offset?

2009-05-15 Thread Johannes Graumann
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

[R] readBin: read from defined offset TO defined offset?

2009-05-11 Thread Johannes Graumann
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

Re: [R] readBin: read from defined offset TO defined offset?

2009-05-11 Thread jim holtman
Can you be more specific on how you want to define the endpoint of that read. What is the criteria you want to use? Can you read in a block and then search of the pattern? On Mon, May 11, 2009 at 7:05 AM, Johannes Graumann johannes_graum...@web.de wrote: Hello, With the help of seek I can

Re: [R] readBin: read from defined offset TO defined offset?

2009-05-11 Thread Duncan Murdoch
On 11/05/2009 7:05 AM, 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?