Skip to content

Instantly share code, notes, and snippets.

@BexTuychiev
Created August 22, 2020 07:37
Show Gist options
  • Save BexTuychiev/5d4449a679834cd0d70d2220c9d0a71d to your computer and use it in GitHub Desktop.
Save BexTuychiev/5d4449a679834cd0d70d2220c9d0a71d to your computer and use it in GitHub Desktop.
def write_to_file(binary_code, file_name):
# Convert binary to a proper file and store in memory
with open(file_name, 'wb') as file:
file.write(binary_code)
print(f'Created file with name: {file_name}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment