Hi all,
I have a problem when I try to output in a file something like:
"vertex.1"
"vertex.2"
............
I could solve the problem with the next code, but this is rather clumsy:
character*10 aux
n=10
open(10,file='scratch') ! this is not very nice ...
open(11,file='rez.txt')
do i=1,n
write(10,*)i
backspace(10)
read(10,*)aux
write(11,*)trim('"vertex.'//aux)//'"'
enddo
close(10)
close(11)
end
If you have a more straight solution ....
Thanks in advance.
I have a problem when I try to output in a file something like:
"vertex.1"
"vertex.2"
............
I could solve the problem with the next code, but this is rather clumsy:
character*10 aux
n=10
open(10,file='scratch') ! this is not very nice ...
open(11,file='rez.txt')
do i=1,n
write(10,*)i
backspace(10)
read(10,*)aux
write(11,*)trim('"vertex.'//aux)//'"'
enddo
close(10)
close(11)
end
If you have a more straight solution ....
Thanks in advance.