This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Corrupted main.c file

Hi,

Last night I had saved the project I was working on and when I opened it today, I found that my main.c file is corrupted. It appears to be an endless string of NUL. This is the second time its happened to me now and I don't really know what I'm doing wrong. I've been able to save it successfully before without it being corrupted so I don't know what would be causing this. Anyone have any suggestions to recover the file and/or prevent this from happening again?

Parents Reply Children
  • Hi, sorry for not getting back to you sooner.

    The file is on a local PCIe SSD and it's located in a standard directory on my system.

    My computer is a Lenovo Legion 5 with a Ryzen 5 4600H processor and its running Windows 10. The only AV software I have is Windows Defender

    Any ideas would be greatly appreciated!