try catch when try to read from files