Dear Kknowle2
This answer was designed by Mr. Rafael Isassi who wrote this lines:
c Just write your number to a string, or read your number from a string,
C instead of to or from an I/O unit (the fortran I/O routines perform the
C conversion). Example:
C To convert to a string:
character*10 string, format
data format /'(F10.2)'/
a=3.1416
write(string,format)a
C now print your string...
print *,string
C To convert a string to a floating point number:
string='123456.789'
read(string,*)b
C now print your number...
print *,b
end
I hope this will be useful to you
Regards