wigglytoes
Technical User
Hi:
I actually used to make a living programming in Fortran. 30 years ago.
Therefore I now fall in the category of having forgotten way more than I know.
I hope you can help me out. This should be easy for the pros.
I have one string defined as
CHARACTER*80 LINES(50)
I have another string defined as
CHARACTER*4 FOUR(20)
In the middle of the program that I'm (trying to) write,
I want to stuff the contents of LINES(N) into all of FOUR
I can't seem to get it right.
An implied DO loop?
A WRITE statement?
SOmehow and EQUIVALENCE
I'm really only trying to look at the first four characters of one of the LINES.
thanks
Wiggly
I actually used to make a living programming in Fortran. 30 years ago.
Therefore I now fall in the category of having forgotten way more than I know.
I hope you can help me out. This should be easy for the pros.
I have one string defined as
CHARACTER*80 LINES(50)
I have another string defined as
CHARACTER*4 FOUR(20)
In the middle of the program that I'm (trying to) write,
I want to stuff the contents of LINES(N) into all of FOUR
I can't seem to get it right.
An implied DO loop?
A WRITE statement?
SOmehow and EQUIVALENCE
I'm really only trying to look at the first four characters of one of the LINES.
thanks
Wiggly