title: Read space separated float values of matrix from text file in C
body: <p>What can be wrong with my code below that it never opens the file. I've also tried with absolute file path but that doesn't helped me, I know physically that the file is there.</p>
  
  <pre><code>FILE *myfile;
  
  
      myfile= fopen("IN.txt",r);
      if (myfile != NULL)
      {
          while ( fscanf(myfile,"%lf",&amp;test) !=eof )
          {
              printf("%f",test);
              printf("\n");
          }
      }
      fclose(myfile);
  </code></pre>