I actually wrote it recently. Unfortunately, I cannot share the source code, but I can say that there are less than 500 lines of code. The key opens the file correctly, allowing you to read access, as you noted. Another thing I did was buffer the records and only write them after I received a certain number of bytes. I also wrote asynchronously, so it did not block the application.
source share