How to recover a file that I accidentally saved changes on?



Huh?? A refresh (on Windows 8.1, 10), re-installs the operating system. It does not restore previous files. Especially files that have been saved over.

To the OP, follow 13thmonkey's advise in the future, because there's no recovering from your particular problem.