I am writing a code that reads data from a number of input files and processes these data. The name of the input files are read from keyboard during the program is being executed. I need to open an output file for each input file starting with the name of the input file. For example;infile=1hhp.pdb, outfile=1hhp.out
I've tried the following, but it didn't work.
do i=1,nofile
read(5,*) infile
open(outfile,file=infile,'.out')
close(outfile)
outfile=outfile+1
enddo
Is there a solution that you can think of pleease? thanx..
I've tried the following, but it didn't work.
do i=1,nofile
read(5,*) infile
open(outfile,file=infile,'.out')
close(outfile)
outfile=outfile+1
enddo
Is there a solution that you can think of pleease? thanx..