Looking for a way to read in a file from a tar.gz archive using the Nim programming language (version 0.11.2). Say I have an archive
/my/path/to/archive.tar.gz
and a file in that archive
my/path/to/archive/file.txt
My goal is to be able to read the contents of the file line by line in Nim. In Python I can do this with the tarfile module. In Nim there are the libzip and zlib modules, but the documentation is minimal and there are no examples. There's also the zipfiles module, but I'm not sure if this is capable of working with tar.gz archives.