Added code to read in contents of file from standard input