Using an external executable


carpediem85
07-23-2007, 11:18 AM
Hi:

I have an executable program (call it "Testing") created in Fortran (I don't have the fortran file, only the executable). I need to run "Testing" 1000 times, so I want to write a fortran code to do it with different inputs.

The ideas is that my code will read a series of inputs and then run the external executable "Testing" with these inputs. It will have to call the program, input the data to the program and then close the program and move on.

The inputs are really simple. I am using Compaq Visual Fortran. I was advised that it is possible, but after browsing the user's guide for a while I still have no clue.

I would appreciate any help. Thank you.