python function file name read-only [textbook open('treasure txt'' '"modepython file object read-only is the default book open('treasure txt we will start with opening file we start with just the file name this is passed into the open(function with second argument' 'indicating that we only want to read the file the function hooks into the operating systemwhich looks up the file by namechecks that we have permission to read itrecords the fact that we are reading itand hands us back handle -the file object -by which we can access its contents