yesterday I wrote a (system) tool in Nim to append binary files. I wanted an offline wikipedia (88GB zim file for kiwix); I split the parts so they can fit on a usb drive, but then didn't have the double space to combine them - so it was a good exercise.
You can find the code here: https://gist.github.com/kobi2187/f0d29b2a0399098ae37a413b29c9d1cd
I would like to ask for comments about the code, is it refactored well enough, what would you have done differently, design differently, etc. -- and as there are system programmers here, and I am quite new to this, can the binappend proc be made faster?
Thank you
It is recommended to import all stdlib modules using import std/ prefix, so import streams -> import std/streams an so on.
import os, sequtils, system - system should not be imported explicitly, it is already always added.