pdp1231
Newbie level 3
- Joined
- Jan 9, 2013
- Messages
- 3
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,307
Has anyone used the fopen_s() function in Visual Studio 2012? I am using the function as follows:
My file is in the Debug folder of the project, but it does not open. Any idea what the problem might be?
PS: I get an error if I use the fopen() function.
errno_t err;
FILE *fp;
err=fopen_s(&fp,"Graph_large.dat","r");
if(err!=0)
{
printf("ERROR");
}
else.....
My file is in the Debug folder of the project, but it does not open. Any idea what the problem might be?
PS: I get an error if I use the fopen() function.