add error handling when a file cannot be read (e.g. binary file read).
add error handling when a file cannot be read (e.g. binary file read).

snmsts/lem,cxxxr/lem,snmsts/lem,snmsts/lem,cxxxr/lem,snmsts/lem,cxxxr/lem,cxxxr/lem