Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

fopen_s function in Visual Studio 2012

Status
Not open for further replies.

pdp1231

Newbie level 3
Newbie level 3
Joined
Jan 9, 2013
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,307
Has anyone used the fopen_s() function in Visual Studio 2012? I am using the function as follows:

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.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top