Fastest way to read every 30th byte of large binary file?

Posted by timmerk on Stack Overflow See other posts from Stack Overflow or by timmerk
Published on 2010-03-06T23:28:43Z Indexed on 2010/03/08 0:33 UTC
Read the original article Hit count: 278

Filed under:
|

What is the fastest way to read every 30th byte of a large binary file (2-3 GB)? I've read there are performance problems with fseek because of I/O buffers, but I don't want to read 2-3 GB of data into memory before grabbing every 30th byte either.

© Stack Overflow or respective owner

Related posts about c

    Related posts about ansi-c