It's me again
I found a program which writes 100 columns with numbers.Now i would like to do the same but write columns with leters like A,B,C
PROGRAM tst
IMPLICIT NONE
INTEGER i,imxcol
CHARACTER varfmt*13
imxcol=99
varfmt='(XXX(E20.10))' !i've tried to change E20.10 on A10
WRITE(varfmt(2:4),FMT='(I3.3)')imxcol !and I3.3 on A10 but nothing works
OPEN(UNIT=1,FILE='tst.txt',STATUS='UNKNOWN')
WRITE(1,FMT=varfmt)(i*1.,i=1,imxcol,1)
CLOSE(1,STATUS='KEEP')
END
I still don't have a solution.Any help?
Thank you all
I found a program which writes 100 columns with numbers.Now i would like to do the same but write columns with leters like A,B,C
PROGRAM tst
IMPLICIT NONE
INTEGER i,imxcol
CHARACTER varfmt*13
imxcol=99
varfmt='(XXX(E20.10))' !i've tried to change E20.10 on A10
WRITE(varfmt(2:4),FMT='(I3.3)')imxcol !and I3.3 on A10 but nothing works
OPEN(UNIT=1,FILE='tst.txt',STATUS='UNKNOWN')
WRITE(1,FMT=varfmt)(i*1.,i=1,imxcol,1)
CLOSE(1,STATUS='KEEP')
END
I still don't have a solution.Any help?
Thank you all