Open the file in text mode, read it, and close the file.
(self, encoding=None, errors=None)
| 1051 | return f.read() |
| 1052 | |
| 1053 | def read_text(self, encoding=None, errors=None): |
| 1054 | """ |
| 1055 | Open the file in text mode, read it, and close the file. |
| 1056 | """ |
| 1057 | encoding = io.text_encoding(encoding) |
| 1058 | with self.open(mode='r', encoding=encoding, errors=errors) as f: |
| 1059 | return f.read() |
| 1060 | |
| 1061 | def write_bytes(self, data): |
| 1062 | """ |
no test coverage detected