thanks a lot, but i need a little more help.
My file,which i want to read and put the data in increasing order, has many many rows(i dont know how many!) and 6 columns.
I only need to read the first column. Then when I execute my program...
program ORDER
DIMENSION X(100)...
Hi,
I have this code for sorting N numbers X(I) in increasing order.
DIMENSION X(100)
READ (*,*) N, (X(I),I=1,N)
N1=N-1
DO 15 I=1,N1
AMIN=X(I)
M=I+1
DO 25 K=M,N
IF (AMIN.LE.X(K)) GO TO 25
Z=AMIN
AMIN=X(K)
X(K)=Z
25 CONTINUE
15 X(I)=AMIN...
thanks for the reply
All the lines contain the same number of characters.
So can you please post an example of opening the file for direct access.
thanks a lot
Hi,
I am new with fortran and i face a problem with reading a file with a huge number of rows. I want to read this file randomly and not read the data as they are stored in file.
The file is like this...
U[m/s] Dir[deg] Usdv[m/s] Umax[m/s] Time Date
7.8 233.6 0.5...
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.