I find particularly difficult reading binary file with Python. Can you give me a hand? I need to read this file, which in Fortran 90 is easily read by
int*4
import pickle f=open("filename.dat","rb") try: while True: x=pickle.load(f) print x except EOFError: pass f.close()