Currently, I'm using ReadFile() and WriteFile() APIs to write & read from file. are there any API functions to replace/edit text if the data is large enough to be written again? I only heard about SetFilePointer() but i'm not quite sure how to use it to replace the text from a file.
For example, select a string/char from file say, value '0' of Key2.
Key1 = 0
Key2 = 0
and change it to '1'.
Key1 = 0
Key2 = 1