I'm looking for troubleshooting suggestions or insights. I'm using Microsoft Visual C++ Version 6. In my MFC application, I can read part of a text file with fgets but, if at some point during that, I open an output file, I then get a "Permission Denied" error (using strerror) on the next fgets and cannot read the rest of the text file. Any ideas?