Without knowing what
YFILE
and
yfopen
etc. actually do, it is just guesswork.
But, I can't help thinking that just from the names
pYFILE
should be a
YFILE*
rather than a
YFILE
Don't think that will fix your problem, but it looks like you have some explaining to do...
Use the "Improve question" widget to edit your question and provide better information.
FILE *pFILE = fopen("c:\\TEST.txt", "a+");
ASSERT(0 != feof(pFILE));
feof[
^]
"The feof function returns a nonzero value after the first read operation that attempts to read past the end of the file. It returns 0 if the current position is not end of file."
You haven't done a read operation, so feof will return zero.