I want to save an hour, but this one change every mont, for external reasons maybe i would have to shut down the program, the next time i run it, i need the correct hour, i should use a File or a registry of windows
You should use a file. It will be more portable and easier to troubleshoot. You will be able to back up your filesystem to create a snapshot of your working system withouout having to backup the registry, and writing to a file is much safer than writing to the registry.