> Date: Thu, 18 Jul 2002 17:11:35 -0500
> From: Aleksandar Donev <[log in to unmask]>
> Jan van Oosterwijk wrote:
>
> > Alternative, maybe more time consuming, use NON advancing output.
>
> Oh, does ADVANCE="NO" prevent the starting space from occuring?
No, it allows a subsequent WRITE etc to output data on the same line.
> I had no
> idea...Why more time consuming?
Separate WRITEs use more time because the I/O package
has to be executed anew for each WRITE.
> I do not wish to use the "convert to CHARACTER(LEN=X)" solution. The question
> was about outputing an array using formatted IO in general, not specifically
> for CHARACTER (for which I can use unformatted as well). It just seems like
> Fortran would (should) have something to curtail specifying the number of
> elements in the array...
It does, but for the forms PRINT *, C and WRITE (zzz, *) C
[where C is an array]
> Thanks,
> Aleksandar
|