hi,
I have two text files. Both files are store in the same folder in C drive along with my program. File 1 have 50 rows , each having 4 different values. File 2 is an already existing file with a list of parameter value for one of a model written in FORTRAN. Now what i am trying to do is:
Step 1. read 1 line from file 1
Step 2. replace one of the lines in file 2 by the line read from file 1 in step 1
Step 3. call and run my model
Step 4. repeat the process for 50 times to run my model with 50 different parameter sets
I wrote a program to do that. It was successfully compiled but on running it is asking to insert a disk in drive D. I think what it is trying to do (and i have no clue why) is that its is trying to write in drive D. can anyone help me out with this problem. is there anyone who done something similar to this and have some code written somewhere for this problem.
any help will be appreciated
thanks
vibhava
I have two text files. Both files are store in the same folder in C drive along with my program. File 1 have 50 rows , each having 4 different values. File 2 is an already existing file with a list of parameter value for one of a model written in FORTRAN. Now what i am trying to do is:
Step 1. read 1 line from file 1
Step 2. replace one of the lines in file 2 by the line read from file 1 in step 1
Step 3. call and run my model
Step 4. repeat the process for 50 times to run my model with 50 different parameter sets
I wrote a program to do that. It was successfully compiled but on running it is asking to insert a disk in drive D. I think what it is trying to do (and i have no clue why) is that its is trying to write in drive D. can anyone help me out with this problem. is there anyone who done something similar to this and have some code written somewhere for this problem.
any help will be appreciated
thanks
vibhava