title: Add to string until hits length (noobie C# guy)
body: <p>I am trying to read a text file, break it into a string array, and then compile new strings out of the words, but I don't want it to exceed 120 characters in length. </p>
  
  <p>What I am doing with is making it write PML to create a macro for some software I use, and the text can't exceed 120 characters. To take it even further I need to wrap the 120 characters or less (to the nearest word), string with "BTEXT |the string here|" which is the command.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>static void Main(string[] args)
  {
       int BIGSTRINGLEN = 120;
  
       string readit = File.ReadAllText("C:\\stringtest.txt");
       string finish = readit.Replace("\r\n", " ").Replace("\t", "");
       string[] seeit = finish.Split(' ');
       StringBuilder builder = new StringBuilder(BIGSTRINGLEN);
       foreach(string word in seeit)
       {
            while (builder.Length + " " + word.Length &lt;= BIGSTRINGLEN)
            {
                  builder.Append(word)
            }
  
       }
  }
  </code></pre>