I am working on a program where I need to load and save some int arrays. The basic structure I need is: int, int, int, int[256] repeated within the file as many times as I need (realisticaly about 2000x).
When reading I want to search in the file by the first three int values and if they exist I want to load the int array. If they don't exist I just want to load all 0.
When writing I want to find if the three integers exist, if they do I replace the array, if they don't I want to append a new entry.
"Human readable" format would be preferred (direct binary file would be human readable in this case as I encode data directly into the binary of the int)
I am pretty new to C++ so please be kind and don't expect I know anything 😉