Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Read binary from file
Post: RE: Read binary from file

It works, Thanks Gribouillis
nextor General Coding Help 6 3,068 Nov-27-2018, 09:10 PM
    Thread: Read binary from file
Post: RE: Read binary from file

(Nov-27-2018, 08:45 PM)Gribouillis Wrote: Are you using PYTHON 2 ?????it says Python 2.7.15+ And with Python 3.6.7rc1 it says the same
nextor General Coding Help 6 3,068 Nov-27-2018, 08:53 PM
    Thread: Read binary from file
Post: RE: Read binary from file

if __name__ == "__main__": tuppleCounter = [ 0, 0, 0 ,0 ] with open('myfile', 'rb') as fl: b = fl.read( 1 ) for x in range( 0,4): tuppleCounter[ ( ( 3 << (...
nextor General Coding Help 6 3,068 Nov-27-2018, 08:40 PM
    Thread: Read binary from file
Post: Read binary from file

I have some trouble reading binary file with open('myfile', 'rb') as fl: b = fl.read( 1 ) for x in range( 0,4): tuppleCounter[ ( ( 3 << ( x * 2 ) ) & b ) >> ( x*2 ...
nextor General Coding Help 6 3,068 Nov-27-2018, 08:08 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020