title: C# Formating Output for a File?
body: <p>I am creating a C# program that outputs text to a file. I want to align all information based of a set specification. For example, I want <code>line#</code> to have 20 chars of space, <code>message info</code> to have 25 chars of space. If the space is unused I want it to be empty spaces. I have searched everywhere and haven't been able to find anything to work. </p>
  
  <p>I have included a basic example below. I used the periods for formatting in the post, I do not want to use them in my output.</p>
  
  <pre>
  Line #1.............Message Info #1      
  
  Line #15............Message Info #15          
  
  Line #534...........Message Info #534
  </pre>