Type casting of integer to character in fortran
- From: munishwar.ahuja@xxxxxx
- Date: 29 Apr 2005 01:50:04 -0700
Hi
How to typecast an integer to fortran
e.g.
IMPLICIT NONE
INTEGER :: ID
CHARACTER*30 :: AA
ID=2
AA='output_'//CHAR(ID)//'.dat'
PRINT *, AA
END
This outputs equivalent ASCII Character in place of 2.
Whats the way to typecast integer to character?
So that I get output_2.dat as an output.
Munish
.
- Follow-Ups:
- Re: Type casting of integer to character in fortran
- From: David Frank
- Re: Type casting of integer to character in fortran
- From: Michael Metcalf
- Re: Type casting of integer to character in fortran
- Prev by Date: Re: compilation problem with module function interface definition
- Next by Date: Re: COMPUTATIONAL FLUID DYNAMICS - Help with SIMPLE algorithm implementation
- Previous by thread: Defining new operators
- Next by thread: Re: Type casting of integer to character in fortran
- Index(es):