title: fscanf not reading in a file in Xcode in C
body: <p>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.  </p>
  
  <p>I have saved a file called "sudokode.in" to my desktop, and that's what I'm trying to open. </p>
  
  <p>The file only has an integer, <strong>19</strong>, in it.   </p>
  
  <p>I just want to print out 19 to the screen.</p>
  
  <p>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.  </p>
  
  <p>I appreciate the help.  </p>
  
  <pre><code>int main() {
  
  int num;
  
  FILE* ifp = fopen("sudokode.in", "r");
  fscanf(ifp, "%d", &amp;num);
  
  printf("%d", num);
  
  return 0;
  }
  </code></pre>