#include <stdio.h>
int main(void)
{
int tmp;
FILE *file;
if(file = fopen("tmp.conf", "r")) {
fscanf(file, "%d", &tmp);
fclose(file);
}
printf("%d\n", tmp);
tmp++;
printf("%d\n", tmp);
if(file = fopen("tmp.conf", "w")) {
fprintf(file, "%d\n", tmp);
fclose(file);
}
return 0;
}