diff --git a/README.md b/README.md index 58ea684..6db715b 100644 --- a/README.md +++ b/README.md @@ -654,16 +654,23 @@ Bytes ``` ```python - = b''.join() + = b''.join() ``` -### Read Bytes from file: +### Read Bytes from file ```python def read_bytes(filename): with open(filename, 'rb') as file: return file.read() ``` +### Write Bytes to File +```python +def write_bytes(filename, bytes): + with open(filename, 'wb') as file: + file.write(bytes) +``` + Struct ------ **This module performs conversions between Python values and C structs represented as Python bytes objects:**