Read file in fortran

lundi 30 septembre 2013

I'm trying to read the next data text file :cross.dat



1.000000-5 0.000000+0 2.530000-2 0.000000+0 7.712958+1 0.000000+0

2.250000+3 0.000000+0 2.250000+3 1.838880+1 2.300000+3 1.936710+1

2.500000+3 1.986000+1 2.650000+3 1.843220+1 2.900000+3 1.832230+1

3.000000+3 1.816280+1 3.150000+3 1.834270+1 3.250000+3 1.872690+1



(datatable is sigma form nndc.bnl.gov)

then, i write them in new file: rewritecross.dat



1.000000-5 0.000000+0

2.530000-2 0.000000+0

7.712958+1 0.000000+0

2.250000+3 0.000000+0

2.250000+3 1.838880+1

2.300000+3 1.936710+1

2.500000+3 1.986000+1

2.650000+3 1.843220+1

2.900000+3 1.832230+1

3.000000+3 1.816280+1

3.150000+3 1.834270+1

3.250000+3 1.872690+1



Please, help me solution it. Thanks.






via Physics Forums RSS Feed http://www.physicsforums.com/showthread.php?t=713493&goto=newpost

0 commentaires:

Enregistrer un commentaire