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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

char function!!

Status
Not open for further replies.

milenko76

Technical User
Mar 26, 2010
100
PT
I have problem with one programe like this.
character*10 tfile
file(3:4)=char(id1+48)//char(id2+48)
open(36, file=tfile, form='unformatted')
One collegue told me that tfile is internal,i do not get what is going on.
Help?
 
Internal? What does he mean? Is he a manager?

tfile is a string that is 10 characters long and it should contain your filename (that doesn't appear in your posted code).

Try: WRITE(*,'(A)')'tfile ="'//tfile//'"'

and see what appears on the screen

I think the variable file should be tfile

You don't say what your problem is....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top