Re: Read binaries from matlab
  Home FAQ Contact Sign in
comp.lang.fortran only
 
Advanced search
POPULAR GROUPS

more...

 Up
Re: Read binaries from matlab         

Group: comp.lang.fortran · Group Profile
Author: nospam
Date: Nov 24, 2007 10:41

Farhad wrote:
> open(unit=1,file='test.bin',form='unformatted')
...
> But it did not work.

That's right. It won't. As was said, plain unformatted I/O will not work
for what you want. That's what this is.
> in g95:

G95 supports f2003 stream I/O. Just add access='stream' in the above
OPEN statement.
> in gfortran:

I don't recall whether gfortran supports stream or not. If it doesn't
support stream, it is almost bound to support one of the common
nonstandard synonyms.

--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
no comments
diggit! del.icio.us! reddit!