Open the file in text mode, read it, and close the file.
(self, encoding=None, errors=None)
| 1396 | return f.read() |
| 1397 | |
| 1398 | def read_text(self, encoding=None, errors=None): |
| 1399 | """ |
| 1400 | Open the file in text mode, read it, and close the file. |
| 1401 | """ |
| 1402 | with self.open(mode='r', encoding=encoding, errors=errors) as f: |
| 1403 | return f.read() |
| 1404 | |
| 1405 | def write_bytes(self, data): |
| 1406 | """ |