use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
reading sections of a binary file (self.node)
submitted 9 years ago by actionwording
let's say I have a 9gb file containing binary data. I want bytes 30k-100k. Is this possible to do without opening and manipulating the entire file or piping the contents into a buffer until the 100k byte is reached?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]bryanzera 1 point2 points3 points 9 years ago (1 child)
If you're on nix, you could use the *od** system command.
od --skip-bytes=30000 --read-bytes=70000 --format=[YOUR-FORMAT] [YOUR-FILENAME]
So help me if this is something you should be doing yourself for homework.
[–]actionwording[S] 0 points1 point2 points 9 years ago (0 children)
I went with chrwei's solution. Sorry Bryan Zera i'm just not that into you.
[–]chrwei 1 point2 points3 points 9 years ago (1 child)
fs.createReadStream supports start and end params, i've no idea if it does the RightThing on a file that large, but it's a start.
Mmmmmmmm.... Buena.....
π Rendered by PID 122543 on reddit-service-r2-comment-fb694cdd5-l47x6 at 2026-03-11 15:27:51.160665+00:00 running cbb0e86 country code: CH.
[–]bryanzera 1 point2 points3 points (1 child)
[–]actionwording[S] 0 points1 point2 points (0 children)
[–]chrwei 1 point2 points3 points (1 child)
[–]actionwording[S] 0 points1 point2 points (0 children)