Returns the I/O mode for the file.
file. mode
If the file was created using the open() built-in function, mode will be the value of the mode parameter. This is a read-only attribute and may not be present on all file-like objects.
None
#TODO
>>> f = open(r'C:test.txt', 'w') >>> f.mode 'w'
#TODO