print out error message
do not truncate file if any error happens. Truncating will lose all
files after this file entry.
avoid EOF error on windows. This is a "try to load" function anyway.
only cares about error other than EOF