I want to write custom gameid to .txt file, example: a1, a2, a3, a4 and etc then admin runs custom command. And every time that ID increase like example first time i wrote custom command in server and write into .txt file: a1. Next time if i use same command wirte to txt file a2 but removes before a1 text.

I hope u understand what i neeed. I try do something like that:
PHP Code:
public WriteMatchID()
{
new i = 0;
new mixid = i++;
new writedata[128];
formatex(writedata,127,"%s",mixid)
write_file(filename,writedata)
}
But does not working... Any help?

Thanks guys!