Hi mikrom
my problem is different of what you answer,I have 2 files,input file have 10 numbers(one column)and output file have 10 numbers too.
How can I to multiply elements in input and output files,this means that element in 2 row of input file be multiplied by element in 1 row of output...
Thanks a lot.I have another question about above code:
How can I to multiply elements in input and output files,this means that element in 2 row of input file be multiplied by element in 1 row of output file,element in 4 row of input file be multiplied by element in 2 row of output file,element...
Thanks dear narlytep.I have one questions about above code:
-number of data in above input file is 10,while number of data in above output file is 5,I want to produce 10-5=5 zeros (one-column)then add this column to output file.by doing this,size of input and output file will be same.
Thanks narlytep,I changed my code according what you said, but after executing code, a ERROR window appears , this window is:
FORTRAN APPLICATION7.exe has stopped working.
changed code is :
PROGRAM a
REAL::b
open (2,file="INPUTS.txt",action="read",status="OLD")
open...
I have a problem, I wrote a simple code that first imports a text file (text file includes one column of numbers) after reading text file, I want to delete numbers in 2,4,6,8,10,... rows) then export it to new file, my code is below:
PROGRAM a
REAL::b
open...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.