I have a program in Fortran that saves the results to a file. At the moment I open the file using
OPEN (1, FILE = \'Output.TXT\')
However,
To convert an integer to a string:
integer :: i character* :: s if (i.LE.9) then s=char(48+i) else if (i.GE.10) then s=char(48+(i/10))// char(48-10*(i/10)+i) endif