Can't open file for writing

  • Thread starter Thread starter Gurunama
  • Start date Start date
G

Gurunama

Guest
I have the following code that doesn't work, as it returns zero:

static FILE* testfile;
testfile = _wfsopen("testing.dat", L"w", _SH_DENYNO);


The program runs from the Debug directory, and I have checked that it has writing permission for SYSTEM. I'm using Windows 10.

Thanks in advance.

Continue reading...
 
Back
Top