comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: byte offset in POINT_LUN
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: byte offset in POINT_LUN [message #55267 is a reply to message #55266] Wed, 08 August 2007 14:30 Go to previous messageGo to previous message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
Josh wrote:
> as i'm cruising through, reading a large ascii file, I'd like to keep
> track of the beginning of certain "blocks" of code. in the event that
> i find what i'm looking for within the block, I'd like to PRINTF the
> entire block (the beginning of which is now above my file position).
> I've used POINT_LUN to return to the start of a file before, by
> setting position=0, but is there a way I can use POINT_LUN to go to a
> specific line within the file (since I'm not sure how that would
> correspond to a byte offset) ?

Sure. Just keep track of the byte offsets corresponding to the start
of the lines you're interested in.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Use IDL6.0 to read gcc3.4(Mingw32) written data
Next Topic: Re: Transforming a nonlinear equation

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 02:27:22 PDT 2025

Total time taken to generate the page: 1.44147 seconds