Skip to content

Instantly share code, notes, and snippets.

@BexTuychiev
Created August 22, 2020 05:38
Show Gist options
  • Save BexTuychiev/5a0dc624e752cd41c72266e9dc1507dd to your computer and use it in GitHub Desktop.
Save BexTuychiev/5a0dc624e752cd41c72266e9dc1507dd to your computer and use it in GitHub Desktop.
# Create a function that converts a digital file into binary
def convert_into_binary(file_path):
with open(file_path, 'rb') as file:
binary = file.read()
return binary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment