20.06.2013, 08:09
To be honest, i have never used fwrite, I always used dini. But now I need to use it. And what I see: Every time we write anything to the file, new line replaces all the previous file content
So fwrite doesnt write the string to the next line. It erases the file, and then writes the string to it.
pawn Code:
format(stringu,sizeof(stringu),"%s/%s/%f/%f/%f/%d\r\n",name,pname,x,y,z,world);
if(buildingsFile)
{
fwrite(buildingsFile,stringu);
.............