I have a character variable of length 2, eg ch2 = '4f', which I want to read into a character variable of length 1, ch1, which must contain the ASCII representation of the 2-char string, ie. Z'4f' ie. ch1='O'. Is there an elegant way to do this in a READ / FORMAT statement? Something like read(ch2,'(z2)') ch1?
↧