News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Accidental reloading of the source file main.c

Started by Stefan923, March 25, 2020, 12:01:32 AM

Previous topic - Next topic

Stefan923

Hello,

I've accidentaly reloaded my main.c source file after Codeblocks told me that the file was modifyed in external. The IDE have copied my code from a header file I that has been opened, to the lost main.c file.
Now, I am curious if there is any way to recover my code. I still have the main.o file which contains the old code. Can I use this file to recover my main.c file?

oBFusCATed

If you've not setup autosave plugin to do backups, or have similar os solutions the file would be gone.

Now is the time to learn how to use a https://en.wikipedia.org/wiki/Version_control
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

raynebc

If you're using Windows, it may have made a shadow copy backup.  Go to the folder's properties in a File Explorer window, select the previous versions tab and see if it lists a backup from a time before your file was overwritten.

Stefan923

Quote from: raynebc on March 25, 2020, 03:35:37 PM
If you're using Windows, it may have made a shadow copy backup.  Go to the folder's properties in a File Explorer window, select the previous versions tab and see if it lists a backup from a time before your file was overwritten.

There's no backup file :(