I get a file "filetest.db" which I can then read using C++.
However, I cannot read the resulting file using python because the following code fails:
from avro.datafile import DataFileReader
from avro.io import DatumReader
reader = DataFileReader(open("filetest.db", "rb"), DatumReader())
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8f in position 2: invalid start byte
My guess is my C++ code is wrong, but I'm can't find any (recent) documentation on what is the correct way of saving things to a file when using C++.