Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

fscaf error

Status
Not open for further replies.

Rationalist

Programmer
May 31, 2005
21
CA
This is my code

int dTmpX;
FILE * fileid;

fileid = fopen("c:\textm1.txt", "r");
fscanf(fileid,"%d",&dTmpX);


And this is the error:

Debig Assertion Failed!

Program: C:\blablabal\
File: fscanf.c
Line:54

Expression: stream != NULL



The file exists and everything is ready but the program doesn't work, can anyone help me out?

I'm using visual c 6.0 by the way.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top