<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>katman's Feed - Programmer's Heaven</title>
    <link>http://www.programmersheaven.com/feed/User/235456/RSS.aspx</link>
    <description>Events at Programmer's Heaven related to the user katman.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Wed, 22 May 2013 20:42:09 -0700</pubDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <item>
      <title>"Permission Denied" error when reading a file</title>
      <link />
      <description>&lt;p&gt;Posted a 'new message on the Visual C++ forum.&lt;/p&gt;I'm looking for troubleshooting suggestions. I'm getting a "Permission Denied" error (from strerror) when reading a text file after opening an output file. But this is only on the second time through my routine.&lt;br /&gt;
&lt;br /&gt;
Details:&lt;br /&gt;
&lt;br /&gt;
Microsoft Visual C++ mfc application.&lt;br /&gt;
&lt;br /&gt;
My routine reads a text file (call it the Command text file) consisting of one letter commands each followed by a path/filename. So each line of the Command text file is of the form x,c:\path\filename where x is the command. There are 3 commands: 1) open and load setup values, 2) open an output file for use by other routines, 3) open an input file for use by other routines.&lt;br /&gt;
&lt;br /&gt;
I have several Command text files. The first time through the routine, all commands execute without errors regardless of which Command text file I read. I then operate on the open input and output files in other routines and close them. When that processing is finished, I re-enter the routine to process a new Command text file. On the second pass, I get the "Permission Denied" error on the next attempt to read a new Command text file after processing command 2 to open the output file. So I cannot read the rest of the second Command text file after that. The same Command text file reads without errors if I access it on the first pass.&lt;br /&gt;
&lt;br /&gt;
I've narrowed the error culprit down to right after the step of opening the output file, but I cannot figure out why this error is happening. Obviously I'm missing something. Any suggestions or observations or troubleshooting tips would be appreciated.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;</description>
      <pubDate>Wed, 06 May 2009 10:45:10 -0700</pubDate>
    </item>
  </channel>
</rss>