My code is the following:
====================================================
int main (void){
int resistance;
char h;
FILE *outfile;
outfile = fopen("C:\\Users\Markos\Documents\Visual Studio 2010\Projects\Lab_10_Project\filename.txt","w");
printf("Give me a value for the resistance");
scanf("%d",&resistance);
fprintf(outfile,"%d",resistance);
fclose(outfile);
return 0;
}
===================================================
When i build the solution i keep getting this error message:
"debug assertion failed!
...
line: 46
expression: (stream != NULL)
...
"
there is nothing in line number 46. Just empty space. The code i posted earlier is all i have written. I checked the link you posted but couldn't find anything helpful.