Suppose my file a.txt has "ABC" written in it. Now I want to write a small b before capital B in the file. How will I do it?
I've tried to do it but i'm having problems.
1. When opened in app mode seekp doesn't work.
2. When opened normally previous written data is erased.