6. Write code to open file created in previous question and print it in following form :