The modes are:
- ‘r’ – Only to read a file.
- ‘w’ – Used to edit and write new information to the file.
- ‘a’ – Appending mode:- Used to add new data in existing file.
- ‘r+’ – Special read and write mode, When need to perform both read and write functions to the file.
No comments:
Post a Comment