Re: Write A, left justified, howto?




*** Russell wrote:
Jeremy schreef:

write(*, '(A4,1X,A10,1X,A10)') 'ID', 'Code', 'Name'

prints:

ID Code Name

I replied too quickly. I notice that you are printing literals, which
you want padded. One other solution would be to leave the literals,
unpadded, as is in the WRITE statement and change the FORMAT string to
use just A for the literal followed by a Tn to tab to the column for
the next literal.

.