open a file and display it