I want to open file so I use fopen_s function under ubuntu. Although I #include <stdio.h>
as read here http://en.cppreference.com/w/c/io/fopen, I get error function was not declared in the scope.
Please help me what am I doing wrong, and how to make it run?
FILE *fp;
fopen_s(&fp, strFilename.c_str(), "rb");
if (fp == NULL){
cout << "cannot open " << strFilename.c_str();
return false;
}
fclose(fp);