reading binary files
- To: mathgroup at smc.vnet.net
- Subject: [mg21080] reading binary files
- From: "Alberto Verga" <verga at marius.univ-mrs.fr>
- Date: Sun, 12 Dec 1999 23:51:47 -0500 (EST)
- Organization: Universite de la Mediterranee Aix en Provence
- Sender: owner-wri-mathgroup at wolfram.com
Can Mathematica v4 read FORTRAN binary fliles? I created a file (in a Win NT 4 system, NTFS file system) using standard fortran 90 (idem in 77) real*8 w(N,N) ! N=256 for example, a two dimensional double precision array open(10, file = 'w.dat', form = 'UNFORMATTED') !open fortran binary file write(10) w ! write data close(10) !close file I tried to read it with ReadListBinary["w.dat", Double, 256]; (in order to get the first 256 values) without succes. -- Alberto Verga - verga at marius.univ-mrs.fr Institut de Recherche sur les Phénomènes Hors Equilibre. 12, av. Général Leclerc, 13003 Marseille, France. Tel: 33 (0) 4 91 64 44 76 - Fax 33 (0) 4 91 08 16 37