This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Storing, reading, working with files of an operating system | |
Types of File modes available | |
'r' : reading mode, this is the default mode which allows you to read the file not any modifications to the file. | |
'w': writing mode, this can be used for creating the new file as well. | |
'a': append mode, this is used to write the data to the end of the file, it does not clears any existing data. | |
#read(): read the contents from a text file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Storing, reading, working with files of an operating system | |
Types of File modes available | |
'r' : reading mode, this is the default mode which allows you to read the file not any modifications to the file. | |
'w': writing mode, this can be used for creating the new file as well. | |
'a': append mode, this is used to write the data to the end of the file, it does not clears any existing data. | |
#read(): read the contents from a text file |