error message if file is empty
display IOException graphically