Trying to implement file opening, try/catch blocks