Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

read bytes from file python

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