Answers for "python read file as binary data"

4

read binary file python

file = open("sample.bin", "rb")
binary_data = file. read()
Posted by: Guest on April-15-2021
0

python read binary trj file

with open(fileName, mode='rb') as file: # b is important -> binary
    fileContent = file.read()
Posted by: Guest on June-19-2021

Python Answers by Framework

Browse Popular Code Answers by Language