title: How to display a matrix in C
body: <p>I have a matrix.txt file wherein there is a matrix written this way :</p>
  
  <pre><code>1 2 3
  
  4 5 6
  
  7 8 9
  </code></pre>
  
  <p>I need to write a little C program that take this file as input and print this matrix in the same way as the .txt file.</p>
  
  <p>That means when the outpout of "./a.out matrix.txt" has to be exactly what's in my .txt file :</p>
  
  <pre><code>1 2 3
  
  4 5 6
  
  7 8 9
  </code></pre>
  
  <p>My problem is that all that I can do is this function:</p>
  
  <pre><code>void printMatrice(matrice) {
      int x = 0;
      int y = 0;
  
      for(x = 0 ; x &lt; numberOfLines ; x++) {
          printf(" (");
          for(y = 0 ; y &lt; numberOfColumns ; y++){
              printf("%d     ", matrix[x][y]);
          }
          printf(")\n");
      }
  }
  </code></pre>
  
  <p>But this is not good at all.</p>
  
  <p>Anyone has an idea ?</p>
  
  <p>Thanks</p>