4 #define DEFAULT_WINFONT "C:\\WINDOWS\\FONTS\\ARIAL.TTF"
6 char *config_file
= "config";
12 fp
= fopen(config_file
, "r");
14 fp
= fopen(config_file
, "w");
16 fprintf(stderr
, "Can't open or create config file\n");
19 fprintf(fp
, "font %s\n", DEFAULT_WINFONT
);
20 fprintf(fp
, "fontsize 11\n");
21 fprintf(fp
, "hiscores hiscores.txt\n");
22 fprintf(fp
, "showmoves 0\n");
25 fp
= fopen(config_file
, "r");
27 fprintf(stderr
,"Can't open config file %s\n", config_file
);