<?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 Re: files not read properly when in debugger in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/files-not-read-properly-when-in-debugger/m-p/949956#M19259</link>
    <description>An iostat value of -1 is telling you that an end-of-file condition occurred. &lt;BR /&gt; &lt;BR /&gt;If you're writing this as a Fortran 77 program, then you might try REWINDing your files after OPENing then but before READing from them. If you're writing this as a Fortran 95 program, then you can try POSITION='REWIND' when you OPEN your files. &lt;BR /&gt; &lt;BR /&gt;Mike Durisin</description>
    <pubDate>Thu, 03 May 2001 21:24:00 GMT</pubDate>
    <dc:creator>durisinm</dc:creator>
    <dc:date>2001-05-03T21:24:00Z</dc:date>
    <item>
      <title>files not read properly when in debugger</title>
      <link>https://community.intel.com/t5/Software-Archive/files-not-read-properly-when-in-debugger/m-p/949955#M19258</link>
      <description>I have a program that opens short files prepared with a text editor as "formatted" and reads variables line by line using free-format reads. The program runs properly as an executable in a DO console window, however in the debugger all reads fail with iostat=-1. Have there been any previous reports of this problem, and have any fixes been posted? &lt;BR /&gt; &lt;BR /&gt;The code is along the lines &lt;BR /&gt; &lt;BR /&gt;integer, parameter :: input = 10 &lt;BR /&gt;integer :: err &lt;BR /&gt;real :: value &lt;BR /&gt;open (input, file='text1.txt', form=formatted', iostat=ierr) &lt;BR /&gt;if (ierr .ne. 1) stop ! output some error message... &lt;BR /&gt;read(finput,*,iostat=ierr) avalue</description>
      <pubDate>Thu, 03 May 2001 09:06:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/files-not-read-properly-when-in-debugger/m-p/949955#M19258</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-05-03T09:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: files not read properly when in debugger</title>
      <link>https://community.intel.com/t5/Software-Archive/files-not-read-properly-when-in-debugger/m-p/949956#M19259</link>
      <description>An iostat value of -1 is telling you that an end-of-file condition occurred. &lt;BR /&gt; &lt;BR /&gt;If you're writing this as a Fortran 77 program, then you might try REWINDing your files after OPENing then but before READing from them. If you're writing this as a Fortran 95 program, then you can try POSITION='REWIND' when you OPEN your files. &lt;BR /&gt; &lt;BR /&gt;Mike Durisin</description>
      <pubDate>Thu, 03 May 2001 21:24:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/files-not-read-properly-when-in-debugger/m-p/949956#M19259</guid>
      <dc:creator>durisinm</dc:creator>
      <dc:date>2001-05-03T21:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: files not read properly when in debugger</title>
      <link>https://community.intel.com/t5/Software-Archive/files-not-read-properly-when-in-debugger/m-p/949957#M19260</link>
      <description>The problem is caused by the default directory being different when you run from inside Developer Studio rather than from a console window.  Developer Studio sets the default directory to be the project directory, the one with the .DSP file, even though the executable is in the Debug or Release directory.  If your program is looking for a file in the same directory as the executable, it won't find it, and instead will open a new, empty file in the project folder that will then get an end-of-file on a read.&lt;BR /&gt;&lt;BR /&gt;Mike's suggestion on using REWIND is not necessary - at least not with CVF.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 03 May 2001 22:12:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/files-not-read-properly-when-in-debugger/m-p/949957#M19260</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2001-05-03T22:12:25Z</dc:date>
    </item>
  </channel>
</rss>

