File corruption usually happens when there is an issue during the ‘save’ process. If your computer crashes the file being saved will likely be corrupted. Another cause might be damaged sections of your hard drive or storage media that might have viruses and malware.
What causes file to corrupt?
System shutdowns, power surges, cntrl+alt+deleting while a file is open, can all be causes of file corruption. Save often to prevent data loss.
What happens when a file gets corrupted?
A data or program file that has been altered accidentally by hardware or software failure or on purpose by an attacker. Because the bits are rearranged, a corrupted file is either unreadable to the hardware or, if readable, indecipherable to the software.