brewbuck,
Yes, of course I've done ferror already and all that and tested for EOF as well. I think the question has changed somewhat: I open the input file and then close the output file from the...
Type: Posts; User: Katman
brewbuck,
Yes, of course I've done ferror already and all that and tested for EOF as well. I think the question has changed somewhat: I open the input file and then close the output file from the...
brewbuck,
The fgets fails. Here's the fgets with strerror added in an attempt to identify the error:
if (NULL == fgets(linebuf, 99, InputFile))
{ sprintf(tmp, "\nstrerror says...
carrotcake1029,
Yes, I write to the directory in other programs without a problem. What's even odder, this "Permission Denied" error occurs on the second pass through this piece of code. On the...
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,...