Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

reading binary file

with open("myfile", "rb") as f:
    byte = f.read(1)
    while byte != b"":
        # Do stuff with byte.
        byte = f.read(1)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #reading #binary #file
ADD COMMENT
Topic
Name
9+1 =