- #1
hamidsv
- 3
- 0
Hi everybody,
I need your help guys. I am using FORTRAN 90(or 95) and try to read a text file. The file contains many lines for instance something like this
CS
DIRECT
1.2 2.5 3.6
1.6 -2.3 2.9
....
....
....
I need to put each line inside a string variable for example
A="CS"
B="DIRECT"
C ="1.2 2.5 3.6 "
....
Please if you know the answer just let me know. I use "READ(1,*,IOSTAT=EOF) A" but the result is totally different.
I need your help guys. I am using FORTRAN 90(or 95) and try to read a text file. The file contains many lines for instance something like this
CS
DIRECT
1.2 2.5 3.6
1.6 -2.3 2.9
....
....
....
I need to put each line inside a string variable for example
A="CS"
B="DIRECT"
C ="1.2 2.5 3.6 "
....
Please if you know the answer just let me know. I use "READ(1,*,IOSTAT=EOF) A" but the result is totally different.