How to open a file in Hamlet II