I am using fprintf command for writing on the text file, but every time when the function called its remove the previous data, I actually want to update the file so that the previous data remain. Kindly guide me how I can make it possible?
Share
when you open the file use “a” for append.
http://www.cplusplus.com/reference/clibrary/cstdio/fopen/