Exception Handling & Generate Functions
Differentiate between file modes r+ and w+ with respect to Python.
Difference between r+ and w+ is given below:
r+ Opens a file for both reading and writing. The file pointer placed at the beginning of the file.
w+ Opens a file for both writing and reading. Overwrites the existing file if the file exists. If the file does not exist, creates a new file for reading and writing.
Sponsor Area
Sponsor Area
Sponsor Area