after performing all file operations of the python filewe need to close it by using the close(function the close(function return true on success or false on failure syntaxfile object close(examplepath=" :\\myfirstpythonprogram\\aseem txtdays_file open (path,' 'days_file close(read and write files since our file has been openedwe can now manipulate it ( read from itthrough the variable we assigned to it python provides three related operations for reading information from file we'll show how to use all three operations as examples that you can try out to get an understanding of how they work suppose we have text file named "aseem txthaving contain as follows read the file as single string syntaxfile object read(read(returns the entire contents of the file as single string examplepath' :\\myfirstpythonprogram\\aseem txtdays_file open (path,' 'print(days_file read()days_file close(outputaseem kumar patel odisha state open university page