sleepingSatellite
Programmer
I have an array of strings.
I want to write only characters from 5 to 14 of one of the elements of the array.
Intuitively, I should do something like:
write(11,FMT='(A10)')array(3)(5:14)
where 3 is the array's index, and (5:14) indicates the characters to write.
But of course it's not accepted.
Using an intermediate variable would't be very elegant.
There must be a feature of the syntax I don't know.
Thank you
I want to write only characters from 5 to 14 of one of the elements of the array.
Intuitively, I should do something like:
write(11,FMT='(A10)')array(3)(5:14)
where 3 is the array's index, and (5:14) indicates the characters to write.
But of course it's not accepted.
Using an intermediate variable would't be very elegant.
There must be a feature of the syntax I don't know.
Thank you