Unfortunately there is not a cross-platform (that is working on both
Windows
and
Linux
) way for enumerating all the files of a folder, you have to write both
Windows
and
Linux
specific code for that.
Once you are able to open them, for every file you have to
- Open it
- Load its content in memory
- Make the required modification in memory
- Write back the modified content to the original file (that is overwriting it)
The above steps can be done with cross-platform
C++
code.