I am trying to use some code that works fine in an earlier VS MFC project, but I can not get fopen_s to work in a new VS MFC project. It refuses to open files. I can get a CFile operation to open files but I need fgetc function and don’t know how to achieve it with CFile. Solution?
`CString fname = “some known file with path”;
FILE* stream;
if (fopen_s(&stream, fname, “r”) != NULL)`