Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Fortran > Fortran 'read' ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 10 Topic 8391 of 8908
Post > Topic >>

Fortran 'read' statement question

by jj_76 <kravi76@[EMAIL PROTECTED] > Jun 17, 2008 at 10:29 AM

hi,

I have the following data format:

 Date:       1997  2 21.0   dE/E:  1.34138E-07   dL/L:  2.61358E-15
 Date:       1998  7  6.0   dE/E:  8.72011E-08   dL/L:  5.22716E-15
 Date:       1999 11 18.0   dE/E:  1.25871E-07   dL/L:  3.92037E-15
 Date:       2001  4  1.0   dE/E:  2.85034E-08   dL/L:  4.29374E-15
 Date:       2002  8 14.0   dE/E:  1.42615E-07   dL/L:  1.86684E-15

When I try to read this data using the following 'read' statement, it
is not reading beyond 'dE'. It does not print anything beyond the 'dE'
in the above file (i.e, starting from '/')....My 'read' statement and
output is below:

 read(10,*)test1,test2,test3,test4,test5,test6
 print *,test1,test2,test3,test4,test5,test6

output:
Date: 1997  2 21.0 dE
Date: 1998  7  6.0  dE
Date: 1999 11 18.0 dE
Date: 2001  4  1.0  dE
Date: 2002  8 14.0 dE

Any help is appreciated
Thanks
 




 10 Posts in Topic:
Fortran 'read' statement question
jj_76 <kravi76@[EMAIL   2008-06-17 10:29:19 
Re: Fortran 'read' statement question
dpb <none@[EMAIL PROTE  2008-06-17 12:55:56 
Re: Fortran 'read' statement question
nospam@[EMAIL PROTECTED]   2008-06-17 11:09:34 
Re: Fortran 'read' statement question
"James Giles" &  2008-06-17 18:50:09 
Re: Fortran 'read' statement question
nospam@[EMAIL PROTECTED]   2008-06-17 12:10:00 
Re: Fortran 'read' statement question
"robin" <rob  2008-06-28 04:01:42 
Re: Fortran 'read' statement question
jj_76 <kravi76@[EMAIL   2008-06-17 11:41:28 
Re: Fortran 'read' statement question
jj_76 <kravi76@[EMAIL   2008-06-17 12:16:26 
Re: Fortran 'read' statement question
dpb <none@[EMAIL PROTE  2008-06-17 14:40:12 
Re: Fortran 'read' statement question
relaxmike <michael.bau  2008-06-18 06:46:00 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Nov 19 9:28:57 CST 2008.