To read the contents of a file