new tmp[10];new File:myfile = fopen("yourfile.txt", io_readwrite);fread(myfile, tmp);format(tmp, sizeof(tmp), "%d", strval(tmp) + 1);fwrite(myfile, tmp);fclose(myfile);