Read the whole file as a string

The first argument is the name of the file and the second is the mode you want to open the file in, ‘r’ for read. For example: inFile = open(‘filename.txt’, ‘r’) Reading from a file is done sequentially in this lab, and a call to read must occur. If a string header is done first, that must be read into a string variable. ................
................