<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Can someone help me with reading a FORTRAN input file? in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-someone-help-me-with-reading-a-FORTRAN-input-file/m-p/741905#M1233</link>
    <description>I'm trying to write a program that will read an input file, but it is set up in an odd way. I only need the numbers but I'm not sure how to avoid the words. Also, the thrust curve is segmented and I am unsure how to make it read each segment.&lt;BR /&gt;&lt;BR /&gt;Any help would be appreciated.&lt;BR /&gt;&lt;BR /&gt;Estes C6-3 Specifications&lt;BR /&gt;diameter 0.018 meters&lt;BR /&gt;length 0.070 meters&lt;BR /&gt;initial_mass 0.0241 kg&lt;BR /&gt;final_mass 0.0094 kg&lt;BR /&gt;max_liftoff_mass 0.1132 kg&lt;BR /&gt;measured_delay 2.47 s&lt;BR /&gt;total_impulse 8.82 N s&lt;BR /&gt;thrust_ranges 5&lt;BR /&gt;time s thrust N&lt;BR /&gt;5&lt;BR /&gt;0.000 0.000&lt;BR /&gt;0.031 0.946&lt;BR /&gt;0.092 4.826&lt;BR /&gt;0.139 9.936&lt;BR /&gt;0.192 14.090&lt;BR /&gt;4&lt;BR /&gt;0.192 14.090&lt;BR /&gt;0.209 11.446&lt;BR /&gt;0.231 7.381&lt;BR /&gt;0.248 6.151&lt;BR /&gt;4&lt;BR /&gt;0.248 6.151&lt;BR /&gt;0.292 5.489&lt;BR /&gt;0.370 4.921&lt;BR /&gt;0.475 4.448&lt;BR /&gt;12&lt;BR /&gt;0.475 4.448&lt;BR /&gt;0.671 4.258&lt;BR /&gt;0.702 4.542&lt;BR /&gt;0.723 4.164&lt;BR /&gt;0.850 4.448&lt;BR /&gt;1.063 4.353&lt;BR /&gt;1.211 4.353&lt;BR /&gt;1.242 4.069&lt;BR /&gt;1.303 4.258&lt;BR /&gt;1.468 4.353&lt;BR /&gt;1.656 4.448&lt;BR /&gt;1.821 4.448&lt;BR /&gt;4&lt;BR /&gt;1.821 4.448&lt;BR /&gt;1.834 2.933&lt;BR /&gt;1.847 1.325&lt;BR /&gt;1.860 0.000</description>
    <pubDate>Fri, 04 Dec 2009 20:56:52 GMT</pubDate>
    <dc:creator>daemon_dkm</dc:creator>
    <dc:date>2009-12-04T20:56:52Z</dc:date>
    <item>
      <title>Can someone help me with reading a FORTRAN input file?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-someone-help-me-with-reading-a-FORTRAN-input-file/m-p/741905#M1233</link>
      <description>I'm trying to write a program that will read an input file, but it is set up in an odd way. I only need the numbers but I'm not sure how to avoid the words. Also, the thrust curve is segmented and I am unsure how to make it read each segment.&lt;BR /&gt;&lt;BR /&gt;Any help would be appreciated.&lt;BR /&gt;&lt;BR /&gt;Estes C6-3 Specifications&lt;BR /&gt;diameter 0.018 meters&lt;BR /&gt;length 0.070 meters&lt;BR /&gt;initial_mass 0.0241 kg&lt;BR /&gt;final_mass 0.0094 kg&lt;BR /&gt;max_liftoff_mass 0.1132 kg&lt;BR /&gt;measured_delay 2.47 s&lt;BR /&gt;total_impulse 8.82 N s&lt;BR /&gt;thrust_ranges 5&lt;BR /&gt;time s thrust N&lt;BR /&gt;5&lt;BR /&gt;0.000 0.000&lt;BR /&gt;0.031 0.946&lt;BR /&gt;0.092 4.826&lt;BR /&gt;0.139 9.936&lt;BR /&gt;0.192 14.090&lt;BR /&gt;4&lt;BR /&gt;0.192 14.090&lt;BR /&gt;0.209 11.446&lt;BR /&gt;0.231 7.381&lt;BR /&gt;0.248 6.151&lt;BR /&gt;4&lt;BR /&gt;0.248 6.151&lt;BR /&gt;0.292 5.489&lt;BR /&gt;0.370 4.921&lt;BR /&gt;0.475 4.448&lt;BR /&gt;12&lt;BR /&gt;0.475 4.448&lt;BR /&gt;0.671 4.258&lt;BR /&gt;0.702 4.542&lt;BR /&gt;0.723 4.164&lt;BR /&gt;0.850 4.448&lt;BR /&gt;1.063 4.353&lt;BR /&gt;1.211 4.353&lt;BR /&gt;1.242 4.069&lt;BR /&gt;1.303 4.258&lt;BR /&gt;1.468 4.353&lt;BR /&gt;1.656 4.448&lt;BR /&gt;1.821 4.448&lt;BR /&gt;4&lt;BR /&gt;1.821 4.448&lt;BR /&gt;1.834 2.933&lt;BR /&gt;1.847 1.325&lt;BR /&gt;1.860 0.000</description>
      <pubDate>Fri, 04 Dec 2009 20:56:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-someone-help-me-with-reading-a-FORTRAN-input-file/m-p/741905#M1233</guid>
      <dc:creator>daemon_dkm</dc:creator>
      <dc:date>2009-12-04T20:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone help me with reading a FORTRAN input file?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-someone-help-me-with-reading-a-FORTRAN-input-file/m-p/741906#M1234</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/455464"&gt;daemon_dkm&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;I'm trying to write a program that will read an input file, but it is set up in an odd way. I only need the numbers but I'm not sure how to avoid the words. Also, the thrust curve is segmented and I am unsure how to make it read each segment.&lt;BR /&gt;&lt;BR /&gt;Any help would be appreciated.&lt;BR /&gt;&lt;BR /&gt;Estes C6-3 Specifications&lt;BR /&gt;diameter 0.018 meters&lt;BR /&gt;length 0.070 meters&lt;BR /&gt;initial_mass 0.0241 kg&lt;BR /&gt;final_mass 0.0094 kg&lt;BR /&gt;max_liftoff_mass 0.1132 kg&lt;BR /&gt;measured_delay 2.47 s&lt;BR /&gt;total_impulse 8.82 N s&lt;BR /&gt;thrust_ranges 5&lt;BR /&gt;time s thrust N&lt;BR /&gt;5&lt;BR /&gt;0.000 0.000&lt;BR /&gt;0.031 0.946&lt;BR /&gt;0.092 4.826&lt;BR /&gt;0.139 9.936&lt;BR /&gt;0.192 14.090&lt;BR /&gt;4&lt;BR /&gt;0.192 14.090&lt;BR /&gt;0.209 11.446&lt;BR /&gt;0.231 7.381&lt;BR /&gt;0.248 6.151&lt;BR /&gt;4&lt;BR /&gt;0.248 6.151&lt;BR /&gt;0.292 5.489&lt;BR /&gt;0.370 4.921&lt;BR /&gt;0.475 4.448&lt;BR /&gt;12&lt;BR /&gt;0.475 4.448&lt;BR /&gt;0.671 4.258&lt;BR /&gt;0.702 4.542&lt;BR /&gt;0.723 4.164&lt;BR /&gt;0.850 4.448&lt;BR /&gt;1.063 4.353&lt;BR /&gt;1.211 4.353&lt;BR /&gt;1.242 4.069&lt;BR /&gt;1.303 4.258&lt;BR /&gt;1.468 4.353&lt;BR /&gt;1.656 4.448&lt;BR /&gt;1.821 4.448&lt;BR /&gt;4&lt;BR /&gt;1.821 4.448&lt;BR /&gt;1.834 2.933&lt;BR /&gt;1.847 1.325&lt;BR /&gt;1.860 0.000&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
It looks as if it may have been written by a Fortran program, in which case the source code for that would give you a good start. It also looks that there is at most 1 character string preceding any numerical value, and you could likely read those lines by list direction into a character string, a real, and a character string. After that, you can read the integer by list direction, which tells you how many lines with pairs of reals to read before expecting the next integer.&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Dec 2009 21:38:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-someone-help-me-with-reading-a-FORTRAN-input-file/m-p/741906#M1234</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-12-04T21:38:17Z</dc:date>
    </item>
  </channel>
</rss>

