Re: [julia-users] Re: equivalent of fseek?

2015-11-30 Thread Stefan Karpinski
No, seek does what the clib fseek function does. The only reason fseek starts with an "f" is because it belongs to the family of higher level file operations that all start with "f" – fopen, fclose, etc. On Sun, Nov 29, 2015 at 10:41 PM, Rajn wrote: > Thanks James for pointing it out. It did wor

[julia-users] Re: equivalent of fseek?

2015-11-29 Thread Rajn
Thanks James for pointing it out. It did work. Is there a need for a C++ like function fseek in that case at all? On Saturday, November 28, 2015 at 1:00:14 PM UTC-5, Rajn wrote: > > Is there an fseek in Julia which returns to an offset from the beginning > of the buffer during a binary file read?

[julia-users] Re: equivalent of fseek?

2015-11-29 Thread James Gilbert
I believe that in seek(s, pos), pos is the absolute position from the start of the stream, and in skip(s, offset), offset is relative to the current position. A "stream" can be any IO type, such as a file on disk or an IOBuffer in memory. On Saturday, November 28, 2015 at 6:00:14 PM UTC, Rajn