Lets say I have created a file as below...
int main ()
FILE * pFile;
char name ;
pFile = fopen ("myfile.txt","w");
for (n=0 ; n<3 ; n++)
puts ("please, enter a name: ");
fprintf (pFile, "Name %d [%-10.10s]\n",n,name);
Now, my requirement is, each and every time I write a name into the file, i want to delete the previous name.
So, at a time I want to have just one name in the file.
Thanks & Regards