The other day I told you how to get a list of files that contains a rar-archive without using third-party extensions or libraries. In one of the comments flashed the thought that, in principle, despite the closeness of the RAR algorithm, you can manually create an archive without compression. After sitting one evening over the code, I present to your attention a class for creating stored-RAR archives.
I will not describe the format again, it is described quite well here or in my previous article. This time, we will simply consider what the library can do and how we will have ways to expand it in the future.
Work example
$ rar = new store_rar ; # create an instance of the class