<?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 Print and Read on a line in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Print-and-Read-on-a-line/m-p/809388#M41893</link>
    <description>Thanks you both. both methods works fine</description>
    <pubDate>Thu, 09 Jun 2011 22:53:35 GMT</pubDate>
    <dc:creator>anishtain4</dc:creator>
    <dc:date>2011-06-09T22:53:35Z</dc:date>
    <item>
      <title>Print and Read on a line</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Print-and-Read-on-a-line/m-p/809382#M41887</link>
      <description>I want to print something on the screen and then read something while the cursor is at the same line, how should I do this?</description>
      <pubDate>Wed, 08 Jun 2011 18:28:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Print-and-Read-on-a-line/m-p/809382#M41887</guid>
      <dc:creator>anishtain4</dc:creator>
      <dc:date>2011-06-08T18:28:51Z</dc:date>
    </item>
    <item>
      <title>Print and Read on a line</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Print-and-Read-on-a-line/m-p/809383#M41888</link>
      <description>Maybe you can use something like&lt;BR /&gt;&lt;BR /&gt;WRITE(*,'("Give a value =&amp;gt;: ")',ADVANCE='NO')&lt;BR /&gt;READ(*,*) value&lt;BR /&gt;&lt;BR /&gt;Robert</description>
      <pubDate>Wed, 08 Jun 2011 19:09:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Print-and-Read-on-a-line/m-p/809383#M41888</guid>
      <dc:creator>Robert_van_Amerongen</dc:creator>
      <dc:date>2011-06-08T19:09:54Z</dc:date>
    </item>
    <item>
      <title>Print and Read on a line</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Print-and-Read-on-a-line/m-p/809384#M41889</link>
      <description>No, that doesn't work - at least in our implementation. You have to use an extension:&lt;BR /&gt;&lt;BR /&gt;write (*,'($,A)') "Number please: "&lt;BR /&gt;read (*,*) number&lt;BR /&gt;write (*,*) number, " is your lucky number"&lt;BR /&gt;end&lt;BR /&gt;&lt;BR /&gt;There is a feature request in to make the version using non-advancing I/O work as desired here. The standard doesn't require it, but some other implementations do it.</description>
      <pubDate>Wed, 08 Jun 2011 19:25:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Print-and-Read-on-a-line/m-p/809384#M41889</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2011-06-08T19:25:57Z</dc:date>
    </item>
    <item>
      <title>Print and Read on a line</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Print-and-Read-on-a-line/m-p/809385#M41890</link>
      <description>I thought it would work with F2003's flush statement (and output_unit from iso_fortran_env),&lt;BR /&gt;but it doesn't. The flush statement "flush( output_unit )"causes the message that unit 6 is not &lt;BR /&gt;connected.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Arjen</description>
      <pubDate>Thu, 09 Jun 2011 10:29:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Print-and-Read-on-a-line/m-p/809385#M41890</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2011-06-09T10:29:15Z</dc:date>
    </item>
    <item>
      <title>Print and Read on a line</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Print-and-Read-on-a-line/m-p/809386#M41891</link>
      <description>Steve,&lt;BR /&gt;&lt;BR /&gt;I am a little confused by your remark. The "ADVANCE" specifier works fine and is a FORTRAN feature (see Metcalf , par. 9.11, Non-advancing I/O)&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;[fortran]  PROGRAM adv
  IMPLICIT none
! 
  REAL :: value
!
  WRITE(*,'("Enter a value =&amp;gt;: ")', ADVANCE='NO')
  READ(*,*) value
  WRITE(*,*) "You give the value:", value
!
  WRITE(*,'($,A)') "Enter a value =&amp;gt;: "
  READ(*,*) value
  WRITE(*,*) "You give the value:", value
!
  STOP
  END PROGRAM adv  [/fortran]&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Or do I miss the essence of your remark?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Robert</description>
      <pubDate>Thu, 09 Jun 2011 14:31:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Print-and-Read-on-a-line/m-p/809386#M41891</guid>
      <dc:creator>Robert_van_Amerongen</dc:creator>
      <dc:date>2011-06-09T14:31:50Z</dc:date>
    </item>
    <item>
      <title>Print and Read on a line</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Print-and-Read-on-a-line/m-p/809387#M41892</link>
      <description>Well, no, I made an error. I was confusing this with the issue where people who want to use non-advancing I/O for a progress bar can't get it working on Intel Fortran. You are correct that it works fine for the "prompt" case. Thanks for picking up on that and I apologize for the mistake.</description>
      <pubDate>Thu, 09 Jun 2011 15:27:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Print-and-Read-on-a-line/m-p/809387#M41892</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2011-06-09T15:27:20Z</dc:date>
    </item>
    <item>
      <title>Print and Read on a line</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Print-and-Read-on-a-line/m-p/809388#M41893</link>
      <description>Thanks you both. both methods works fine</description>
      <pubDate>Thu, 09 Jun 2011 22:53:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Print-and-Read-on-a-line/m-p/809388#M41893</guid>
      <dc:creator>anishtain4</dc:creator>
      <dc:date>2011-06-09T22:53:35Z</dc:date>
    </item>
  </channel>
</rss>

