Handle truncation of the file.