fgets( c, len, fp );
i = atoi(c);
i += num;
fprintf( fp, "%d\n", i );