file name 'treasure txtstring book file 'treasure islandstring "openingthe file file object reading from the file file contents "closingthe file finished with the file reading from file involves four operations bracketing three phases we start with file name this is string of characters want to be pedantic about something in this coursea file name is not file file is lump of data in the computer' long-term store file name is short piece of text we link file name to file by process called "opening the filethis takes the file name and creates python file object which will act as our conduit to the file proper we will use this file object to read data from the file into the python script when we are done reading data out of the file (via the file objectwe will signal to both python and the operating system that we are done with it by "closingit this disconnects us from the file and we would have to re-open it if we wanted more data