I'm trying to figure out how to make my program execute some code (eg. save files) if the computer is shutting down. is that possible?
how does the computer shut programs when it's shutting down?
if i put some code into the exit function, would it run when the computer shuts down?