if the user hits ctrl c its no problem its only a problem when the user exits the app by pressing alt-ctrl-del and close it that way or just pushes the button with the cross in the right corner and then press yes when it gives a warning. That warning is standard its something like data might be lost dunno wuts it in english anyway if you close it like that then the os thinks the file is still open.
edit==>also if you close the app by doing one of those two things then the next time u run the app it will say that the .txt files cant be read wich is an error done like this
Code:
hscr=fopen("data\\hscr.txt","r+");
if(hscr==NULL){ printf("The file hscr.txt couldnt be opened or something like that blabla\n");
}
and since i need data from that file to run the app he wont do a thing because he cant open the .txt file
and then the only choice u have is to reboot the OS
becaus then the hscr.txt will be closed