Write data to a file object. Parameters ---------- f : file The file object at which to write the data. data : str The data to write to the file.
(f, data)
| 1727 | |
| 1728 | |
| 1729 | def write_data(f, data): |
| 1730 | """ |
| 1731 | Write data to a file object. |
| 1732 | |
| 1733 | Parameters |
| 1734 | ---------- |
| 1735 | f : file |
| 1736 | The file object at which to write the data. |
| 1737 | data : str |
| 1738 | The data to write to the file. |
| 1739 | """ |
| 1740 | |
| 1741 | f.write(bytes(data, "UTF-8")) |
| 1742 | |
| 1743 | |
| 1744 | def list_dir_no_hidden(path): |
no outgoing calls