Ah! ... it's no big deal, I can trivially maintain a global *OFFSET that I update at each call to rd. But I like the idea of using dd for reading from arbitrary offset. Perhaps it would be more efficient than doing a dummy call to rd just to ignore the contents. Regards, Kashyap
On Tue, Nov 26, 2019 at 1:52 PM Alexander Burger <a...@software-lab.de> wrote: > On Tue, Nov 26, 2019 at 09:09:08AM -0800, C K Kashyap wrote: > > Is there a way to get the file offset (which I can get using lseek)? I > need > > Unfortunately, the PicoLisp I/O machinery does not handle file positions, > and > has no functions to get or set them. > > The database does it (the position of an object is its 'id' multiplied by > the > block size), but this perhaps does not help you. > > One way might be using pipes to/from the 'dd' tool ... > > ☺/ A!ex > > -- > UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe >