I think my earlier comment was misunderstood.The thing is i am transferring the code from matlab to fortran. I don't have problem in the logic part which is 90% moved to fortran. I am having problem in reading and writing the data, especially multidimensional array. I dont have any issues in...
Hi
Thank you all for the replies. I was busy with my exams that is why i could not thank you earlier.
The file i want to read contains real data with two spaces as delimiter.
Once i find the number of columns in the file,how can i read and store it in a array?. What syntax of the format...
Hello All
I want to read a file that can contain different number of columns of data everytime in Fortran 77. i.e. I dont know the number of columns beforehand.If I know the number of columns,I can read the file like this way
SUBROUTINE varread(TNo,X,Y,Z,VARL)
IMPLICIT NONE...
I have written a program but it reads only the first line. I dont know how to make it return again and read the next line.
Here it is
PROGRAM nodes1
Integer K,N
double precision XPOS,RAD
OPEN(25,file='nodes_cylinder.txt')
WHILE(K.NE.-1) DO...
I am a novice in fortran programming.I want to read text files containing three columns of data ( one integer and 2 real. Each file contain data of different lengths.Could someone please help me by providing the code?.
Below is the data from one of the files to be read.
1 0.0000000E+00...
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.