Cpp file got corrupted

  • Thread starter Thread starter Abhijeet
  • Start date Start date
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
 
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
 
Back
Top