Download WinHex program and open your corrupted file with it.
If there is non-zero values , just copy and paste all this data to you new file.
I'm afraid you've lost it.
If you have a VCS in place (which you should), restore the file from there. Also, see if there are any previous versions of the file and try to fish it out from over there. Lastly, check your general-purpose backups, if you happen to have those.
If you have published your content, then in visual studio you can right click on the specific file and choose 'replace [fileName] from server'. This will download an uncorrupted version of your content from the published site.
Hope this helps.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.