msabet
- 4
- 0
hi dears
I have a txt file as follows:
"
x1 Xi x2 x-EN y-EN EA EB ma gnetic
------------------------------------------------------&------------
.0010 -.9990 .7322 .4042 -.3280 -.0002 -.3279 .0010
.0010 -.9990 .7322 .4042 -.3280 -.0002 -.3279 .0010
.0010 -.9800 .7210 .3917 -.3293 -.0030 -.3262 .0010
.0010 -.9700 .7153 .3855 -.3297 -.0045 -.3252 .0010
.0010 -.9600 .7096 .3796 -.3300 -.0060 -.3241 .0010
.0010 -.9500 .7041 .3739 -.3302 -.0074 -.3228 .0010
.0010 -.9400 .6987 .3684 -.3302 -.0089 -.3214 .0010
.0010 -.9300 .6933 .3632 -.3301 -.0103 -.3199 .0010
.0010 -.9200 .6880 .3581 -.3299 -.0117 -.3183 .0010
.0010 -.9100 .6829 .3533 -.3296 -.0130 -.3166 .0010
"
i want to read this data in fortran 90 but i need only the real data. So I don't know how i can read them in such a way that the first two line is ignored. using /-format the .exe file can'nt read the real data and an error related to input-variable type is appeared.
how you can help me.
thanks
I have a txt file as follows:
"
x1 Xi x2 x-EN y-EN EA EB ma gnetic
------------------------------------------------------&------------
.0010 -.9990 .7322 .4042 -.3280 -.0002 -.3279 .0010
.0010 -.9990 .7322 .4042 -.3280 -.0002 -.3279 .0010
.0010 -.9800 .7210 .3917 -.3293 -.0030 -.3262 .0010
.0010 -.9700 .7153 .3855 -.3297 -.0045 -.3252 .0010
.0010 -.9600 .7096 .3796 -.3300 -.0060 -.3241 .0010
.0010 -.9500 .7041 .3739 -.3302 -.0074 -.3228 .0010
.0010 -.9400 .6987 .3684 -.3302 -.0089 -.3214 .0010
.0010 -.9300 .6933 .3632 -.3301 -.0103 -.3199 .0010
.0010 -.9200 .6880 .3581 -.3299 -.0117 -.3183 .0010
.0010 -.9100 .6829 .3533 -.3296 -.0130 -.3166 .0010
"
i want to read this data in fortran 90 but i need only the real data. So I don't know how i can read them in such a way that the first two line is ignored. using /-format the .exe file can'nt read the real data and an error related to input-variable type is appeared.
how you can help me.
thanks
Last edited: