View Full Version : I need some fortran 90 help
Im trying to write a program in fortran 90 to process some output files that i have. Here is the problem I am having. All of the output files are named file.datA, file.datB,...ect. I set the variable "file" to equal file.dat. I want the program to run through a loop and each time change the name of "file". Basically I need to add A-Z on the end each time it reads the file.
PerennialII
Mar29-06, 03:13 PM
Im trying to write a program in fortran 90 to process some output files that i have. Here is the problem I am having. All of the output files are named file.datA, file.datB,...ect. I set the variable "file" to equal file.dat. I want the program to run through a loop and each time change the name of "file". Basically I need to add A-Z on the end each time it reads the file.
.... wonder if you could do it simply by defining a new character variable by trimming (using TRIM and some "editing suffix" in between, like // to ditch spaces etc.) 2 other chars together, and using the new one in the loop as the filename.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.