moved println to after error evaluation on open file. If an error occurs...

..., the filename may not exist causing a panic. Check error first, then print status message fixes this.