Re: A problem in writting a sequential binary file (compiled with LF95)




David Flower wrote:
On Nov 27, 2:56?pm, "dpb" <dpboza...@xxxxxxxx> wrote:
....

FORM = 'binary' is a Lahey extension. I don't know if it means
something different to FORM = 'unformatted'. Why not try the latter.

As it is in several other compilers. For all that I am aware of
(which, granted, isn't but a handful and there may be others that don't
follow the same rules) "binary" sequential files are a mechanism for
"stream" i/o.

As for the suggestion to use array notation, I was curious as to
whether the symptoms would be different if the individual writes
specified by the looping construct were replaced by an array write --
that could indicate something about what was/is the problem and, just
perhaps, provide a workaround if there is indeed something broken in
the compiler i/o and, possibly, lead to more efficient code as well.

.