1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

I need some fortran 90 help

  1. Mar 27, 2006 #1
    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.
     
  2. jcsd
  3. Mar 29, 2006 #2

    PerennialII

    User Avatar
    Science Advisor
    Gold Member

    .... 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.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: I need some fortran 90 help
  1. Help with Fortran 90 (Replies: 0)

Loading...