check if file is text