Cpp file got corrupted

A

Abhijeet

Hi,

I have a very strange problem. My Cpp file has got
corrupted.

I was working in visual studion 6.0 sp2 on Win 2000. When
I was updating file suddenly my system got switched off,
when again I switched it on and try to open that file ,
Stange my .cpp file has become binary file , Visual studio
is not able to open this file. Please help me to recover
it that file has got lot of code.

Thanks in advance

-abhijeet
 
F

Fao, Sean

Abhijeet said:
Hi,

I have a very strange problem. My Cpp file has got
corrupted.

I was working in visual studion 6.0 sp2 on Win 2000. When
I was updating file suddenly my system got switched off,
when again I switched it on and try to open that file ,
Stange my .cpp file has become binary file , Visual studio
is not able to open this file. Please help me to recover
it that file has got lot of code.

If you're lucky, you'll find a .bak file, which will be the second-to-last
saved file. Otherwise, unless you have a tape backup, you're probably out
of luck. Are you sure you're opening the right file? Open the file with
any text editor such as DOS Edit and see if it's just one or two characters
that got corrupt. I don't see any way that the entire file could just
suddenly switch to binary data unless you're FAT is screwed up. I assume
you're using either FAT16 or FAT32 because from what I understand, it is
almost impossible to corrupt an NTFS FS in the method you just described.

Good luck,

Sean
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top