Answers for "open binary files"

0

reading binary file

with open("myfile", "rb") as f:
    byte = f.read(1)
    while byte != b"":
        # Do stuff with byte.
        byte = f.read(1)
Posted by: Guest on April-18-2021
0

binary file exetention

.bin
Posted by: Guest on September-01-2021

Python Answers by Framework

Browse Popular Code Answers by Language