Question

One of my cpp files in project doesn't opens in VS 2010 editor, it gets open in notepad as text file but empty. While file has 25 kb size and cpp file extension.

How can I repair it?

Was it helpful?

Solution

Open the file in hex editor and check what it contains. The likely reason of observed situation is you've got file data lost due to some event like power outage or disk malfunctioning. If that's the case you're likely beyond help - the file will contain garbage. That's why there're backups and version control systems.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top