Opening, Reading And Writing
- Sometimes you are given files and you have to read them.
- We need to manage whether we are reading a contents of a file or making changes to it and writing to it.
- This is due to if two applications are writing to a file at the same time.
- Reading Files. In the example below, the file will be opened in
readmode.f = open('10_01_file.txt', 'r') print(f) - The output is a file object: ```