Error handling for irregal input(e.g. blank text files).