MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

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




  • Prev by Date: Re: Integrate[1/2+1/2 Erf[z],{z,-inf,0}]
  • Next by Date: Re: (-8)^(1/3) maybe a faq?
  • Previous by thread: Re: Integrate[1/2+1/2 Erf[z],{z,-inf,0}]
  • Next by thread: Re: reading binary files