1 | initial version |
Hi, you create a FileStorage for reading, not for writing. See OpenFileStorage documentation. By the way, you should avoid the old C-API if possible. Use instead the C++ interface. Here you can see how to read and write files with the C++ API.