I'm trying to get my xcode to read in a file, but I keep getting a "build succeeded" and then (11db) as the output.
I have saved a file called "sudokode.in" to my desktop, and that's what I'm trying to open.
The file only has an integer, 19, in it.
I just want to print out 19 to the screen.
I have never gotten my Xcode to read a file before, so I wouldn't know if I have to set it up, or what. I have searched online and haven't found a real solution to this problem.
I appreciate the help.
int main() {
int num;
FILE* ifp = fopen("sudokode.in", "r");
fscanf(ifp, "%d", &num);
printf("%d", num);
return 0;
}