I have a file with some of user1\'s data. I want to use the same file for user2 by clearing the content of the file.
My idea is that when a new user comes, data of
I am using:
fp=freopen(NULL,"w",fp);