Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

integer to string

Status
Not open for further replies.

maria7

Programmer
Dec 11, 2002
3
BE
Hello,

This is a pretty simple question I hope... I have to create a few files with names containing certain variables - for example blah_1_2.dat, where 1 and 2 are some variables. How do I do that?
 
how about

program blah
character*80 fn
integer i1/1/,i2/2/

write (fn,1000) i1,i2
1000 format('blah_',i1,'_',i1)
open(1,FILE=fn)
write(1,*) 'junk'
close(1)

end
CaKiwi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top