Hello
I could not solve why it exit with error :
If ICode:using namespace std; int main(){ char c[70]; char l[80]; fgets(c, 100, stdin); FILE *file; errno_t err = fopen_s(&file, c, "r"); printf("err:%d",err); while (fgets(l, 100, file)) { char *s1 = strstr(l, "VELOCITY"); char *s2 = strstr(l, "POSITION"); //doing somethings with s1 and s2 } fclose(file); return 0; }it is working . Why ?Code:fopen_s(&file, "some/path", "r")
Thanks