+{
+char savefile[300];
+
+time_t current_time = time(NULL);
+struct tm* time_struct;
+time_struct = localtime(¤t_time);
+sprintf(savefile,"%s/%d-%d-%d-%d.save",st_save_dir,time_struct->tm_year+1900,time_struct->tm_mon,time_struct->tm_mday,time_struct->tm_hour);
+printf("%s",savefile);
+
+FILE* fi;
+
+ fi = fopen(savefile, "wb");
+
+ if (fi == NULL)
+ {
+ fprintf(stderr, "Warning: I could not open the high score file ");
+
+ }
+ else
+ {
+ fwrite(&level,4,1,fi);
+ fwrite(&score,4,1,fi);
+ fwrite(&distros,4,1,fi);
+ fwrite(&tux_x,4,1,fi);
+ fwrite(&tux_y,4,1,fi);
+ fwrite(&scroll_x,4,1,fi);
+ }
+ fclose(fi);
+
+}
+
+void loadgame(char* filename)
+{
+char savefile[300];
+
+time_t current_time = time(NULL);
+struct tm* time_struct;
+time_struct = localtime(¤t_time);
+sprintf(savefile,"%s/%d-%d-%d-%d.save",st_save_dir,time_struct->tm_year+1900,time_struct->tm_mon,time_struct->tm_mday,time_struct->tm_hour);
+printf("%s",savefile);
+
+FILE* fi;
+
+ fi = fopen(savefile, "rb");
+
+ if (fi == NULL)
+ {
+ fprintf(stderr, "Warning: I could not open the high score file ");
+
+ }
+ else
+ {
+ fread(&level,4,1,fi);
+ fread(&score,4,1,fi);
+ fread(&distros,4,1,fi);
+ fread(&tux_x,4,1,fi);
+ fread(&tux_y,4,1,fi);
+ fread(&scroll_x,4,1,fi);
+ fclose(fi);
+ }
+
+}
\ No newline at end of file