how to update values in a middle of a CSV file

 

I have an existing file thath I open with both WRITE and READ rights to be able to update it.

I want to update 2 values that are somewhere in the file.

I first go tothe correctpositionbyreading the data before.

But then should I just write the new values (does it overwrite the old values or will it just insert the new ones) and close the file (or before closing the file should I firstreach the end of the file?)

Thanks

Reason: