Implement openFile()
Make use of openFile()