title: Output formated table with fprintf
body: <p>Is there any easy way to format that table? </p>
  
  <p>I am reading a txt file using a structure. But when printing it on the screen it not organised. </p>
  
  <pre><code>fprintf(stdout,"%d.\t'%s'\t%d\t%d\t%d\n",read.serial,read.name,read.roll,read.day1,read.day2);
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/sGabP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sGabP.png" alt="Output"></a></p>
  
  <p>I want this kind of output</p>
  
  <pre><code>
  No.  Name                              ID        #1 #2
  1.  Sajjad Kashem                   1330273      0  1 
  2.  Hafizul Karim                   1420595      1  1 
  3.  Afsana Rahman                   1430458      1  1 
  4.  Md. Yousuf Hosain               1510295      0  0 
  5.  Md. Farhanuzzaman Reza Famous   1510303      1  0 
  6.  Md. Minul Islam Talukdar        1510678      0  1 
  
  </code></pre>