Re: Type casting of integer to character in fortran




<munishwar.ahuja@xxxxxx> wrote in message
news:1114764604.602378.86180@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

You need to look up internal files in your textbook:

IMPLICIT NONE
INTEGER :: ID
CHARACTER*30 :: AA
ID=2
AA='output_ .dat'
write(aa(8:8),'(i1)') id
PRINT *, AA
END

Regards,

Mike Metcalf


.



Relevant Pages

  • Re: Design of modules
    ... > If you forget to explicitly declare a local item that has the same ... IMPLICIT NONE is no help against the problem. ... Regards, ... Mike Metcalf ...
    (comp.lang.fortran)
  • Re: Two questions about character strings ...
    ... >> Regards, ... >> Mike Metcalf ... since array declaration will govern how the ... > strings are loaded into ITS declared length and will either truncate ...
    (comp.lang.fortran)
  • Re: input character
    ... If the compiler has a problem with that, it's a bug not a ... feature. ... Regards, ... Mike Metcalf ...
    (comp.lang.fortran)
  • a query !!!
    ... implicit none ...
    (comp.lang.fortran)
  • Re: allocatables arrays&subroutines
    ... The intent attribute is applicable only to dummy ... arguments ("Fortran 90/95 Explained", Section 5.9), and the use statement ... Regards, ... Mike Metcalf ...
    (comp.lang.fortran)