univers0358

09-26-2006, 09:13 AM

Dear Sirs

I am reading and handling with a long data in ASCII format, the data stucture is written in the follwoing format, the key problem is the length of the string A6,B6,C6..is not the same, which leads the difficulty to read this data file via loop structure in fortran 90, It is highly appreciated if some experts show a key to this problem

(note: 'A' ,'B', and 'Z' present character strings, 'RA', 'RB' mean real numbers)

A1,A2,A3,A4,A5(1),A6(1),RA1(1),..............RA1(2 4)

A1,A2,A3,A4,A5(2),A6(2),RA2(1),..............RA2(2 4)

........

........

A1,A2,A3,A4,A5(30),A6(30),RA30(1)..........RA30(24 )

B1,B2,B3,B4,B5(1),B6(1),RB1(1),...............RB1( 24)

B1,B2,B3,B4,B5(2),B6(2),RB2(2),...............RB2( 24)

.....

.....

Z1....

..........

I am reading and handling with a long data in ASCII format, the data stucture is written in the follwoing format, the key problem is the length of the string A6,B6,C6..is not the same, which leads the difficulty to read this data file via loop structure in fortran 90, It is highly appreciated if some experts show a key to this problem

(note: 'A' ,'B', and 'Z' present character strings, 'RA', 'RB' mean real numbers)

A1,A2,A3,A4,A5(1),A6(1),RA1(1),..............RA1(2 4)

A1,A2,A3,A4,A5(2),A6(2),RA2(1),..............RA2(2 4)

........

........

A1,A2,A3,A4,A5(30),A6(30),RA30(1)..........RA30(24 )

B1,B2,B3,B4,B5(1),B6(1),RB1(1),...............RB1( 24)

B1,B2,B3,B4,B5(2),B6(2),RB2(2),...............RB2( 24)

.....

.....

Z1....

..........