<?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 Including apostrophes in a READ in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Including-apostrophes-in-a-READ/m-p/861732#M69332</link>
    <description>Hi folks
&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;I need to read the following into variable from a text file: 'xml_input'C&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;The read needs to include the apostrophes and the C appended on the end, yet a simple READ of the line only returns the text within the apostrophes. I'm assuming the READ statement is ignoring the apostrophes and assuming that they are simply indicative of the boundaries of the text of interest. In our case they are not, and I need to include them as well as what appears outside of the apostrophes, in this case the "C".&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Anyone know a sneaky way to achieve this?&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Many thanks!&lt;/DIV&gt;</description>
    <pubDate>Fri, 25 Sep 2009 15:08:12 GMT</pubDate>
    <dc:creator>Stuart_M_</dc:creator>
    <dc:date>2009-09-25T15:08:12Z</dc:date>
    <item>
      <title>Including apostrophes in a READ</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Including-apostrophes-in-a-READ/m-p/861732#M69332</link>
      <description>Hi folks
&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;I need to read the following into variable from a text file: 'xml_input'C&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;The read needs to include the apostrophes and the C appended on the end, yet a simple READ of the line only returns the text within the apostrophes. I'm assuming the READ statement is ignoring the apostrophes and assuming that they are simply indicative of the boundaries of the text of interest. In our case they are not, and I need to include them as well as what appears outside of the apostrophes, in this case the "C".&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Anyone know a sneaky way to achieve this?&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Many thanks!&lt;/DIV&gt;</description>
      <pubDate>Fri, 25 Sep 2009 15:08:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Including-apostrophes-in-a-READ/m-p/861732#M69332</guid>
      <dc:creator>Stuart_M_</dc:creator>
      <dc:date>2009-09-25T15:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Including apostrophes in a READ</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Including-apostrophes-in-a-READ/m-p/861733#M69333</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
If you have tried only list-directed read, you'll probably need to read the entire line to a CHARACTER string usng A format, then find your string and copy it out by a CHARACTER assignment. Not very sneaky, somewhat old-fashioned.&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Sep 2009 16:34:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Including-apostrophes-in-a-READ/m-p/861733#M69333</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-09-25T16:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Including apostrophes in a READ</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Including-apostrophes-in-a-READ/m-p/861734#M69334</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/367365"&gt;tim18&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; If you have tried only list-directed read, you'll probably need to read the entire line to a CHARACTER string usng A format, then find your string and copy it out by a CHARACTER assignment. Not very sneaky, somewhat old-fashioned.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
Are you able to embed the string in double-quotes (")&lt;BR /&gt;&lt;BR /&gt;If so, you can use the DELIM attribute on the READ so that the single-quotes are ignored as text delimiters.&lt;BR /&gt;&lt;BR /&gt;David&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Sep 2009 13:53:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Including-apostrophes-in-a-READ/m-p/861734#M69334</guid>
      <dc:creator>DavidWhite</dc:creator>
      <dc:date>2009-09-28T13:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Including apostrophes in a READ</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Including-apostrophes-in-a-READ/m-p/861735#M69335</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
You cannot use list-directed input for this. I would agree with Tim's advice - read the whole line into a character variable and then "parse" it yourself, looking for delimiters that are correct for your line's syntax. It doesn't match anything Fortran can provide for you automatically.&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Sep 2009 14:45:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Including-apostrophes-in-a-READ/m-p/861735#M69335</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-09-28T14:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Including apostrophes in a READ</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Including-apostrophes-in-a-READ/m-p/861736#M69336</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
Thanks everyone
&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;I eventually used a formatted read (A) that picked up all the necessary characters. Thanks very much for the help :-)&lt;/DIV&gt;</description>
      <pubDate>Mon, 28 Sep 2009 15:00:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Including-apostrophes-in-a-READ/m-p/861736#M69336</guid>
      <dc:creator>Stuart_M_</dc:creator>
      <dc:date>2009-09-28T15:00:05Z</dc:date>
    </item>
  </channel>
</rss>

