Help! I know use the following codes can write datas to a particular .yml file.
FileStorage fs("test.yml", FileStorage::WRITE);
fs << "frameCount" << 5;
Now the test.yml is an already exist .yml file and have multiple keys and variables, but I only want to change one of the variables. However, if I use the above codes, the .yml will be cleaned up and only remain the key "frameCount", which is not expected.
So, is there anyway to change one part of .yaml why remain other parts? Just like we modify a file without clean up it.
Please help