title: Write to text file and start at specific position
body: <p>I an writing a program to create a type of file. The specifications show that I must have certain delimited factors where as strings on the same line have limits on how long they can be and the starting position of them on the line.</p>
  
  <p>For instance.</p>
  
  <p>I am trying to write a text file.</p>
  
  <p>First line should show the string of "TEST1" which would start at the 0 position on the first line and create spaces for the total count of 10. So there would be 5 spaces after the string.</p>
  
  <p>On the same line on the 11th position it would write "TEST2" which again would have the total count of 10 so there would be 5 spaces after the string.</p>
  
  <p>The strings of "TEST1" and "TEST2" can change at anytime from 1-10 characters. </p>
  
  <p>I have tried String.format("{0,10}" and it appears that it allows that to end at the 10th position but not what I am looking for.</p>
  
  <p>This is for a FNMA file. </p>