If your computer loses power or crashes as you save a file, there's a good possibility that the file will become corrupted. Bad sectors on your hard drive or other storage media can also cause file corruption, even if the saving process finishes properly. Viruses and other malware can also cause file corruption.