program to read the contents in the file