fortran

Reading a binary file with python

Reading a binary file with python Question: 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 n_particles, n_groups real*4 group_id(n_particles) read (*) n_particles, n_groups read (*) (group_id(j),j=1,n_particles) In detail, the file format is: Bytes …

Total answers: 8