Question: I accidentally made major changes to the contents of a file and I can't undo it due to closing…