WRITE + new line
- From: Martin Glaser <ska1do@xxxxxx>
- Date: Mon, 14 Nov 2005 19:34:04 +0100
Hi,
I want to write an 2-dimensional array to a textfile, but WRITE always uses a new line. How can you stop that?
I use something like this:
DO i=1, length1
DO j=1, length2
WRITE(*,*) array(i,j)
END DO
END DO
I read that it shout be able to do something like this:
DO i=1, length1
WRITE(*,*) (array(i,j), j=1, length2)
END DO
but it still uses a new line for each entry.Is there a convenient standard Fortran 90/95 way to do this?
Thanks, Martin .
- Follow-Ups:
- Re: WRITE + new line
- From: robin
- Re: WRITE + new line
- From: Michael Prager
- Re: WRITE + new line
- From: Dan Nagle
- Re: WRITE + new line
- Prev by Date: Re: TRIM
- Next by Date: Re: WRITE + new line
- Previous by thread: minloc with .false. mask
- Next by thread: Re: WRITE + new line
- Index(es):