I have a very large binary file (several hundred GB) which I would like to process using Mathematica. I only need to process a few bytes of this file at a time, and I know in advance which bytes I would like to read.
How can I directly read the $N$th byte of this file? Functions like OpenRead
and BinaryReadList
seem to only be able to read from the beginning of the file.
StreamPosition
/SetStreamPosition
/Skip
. $\endgroup$SetStreamPosition
is definitely the missing piece I was looking for! Can't believe I missed that. I'll gladly accept if you make that an answer. $\endgroup$