program to read the contents of the file