Re: Character line break

From: Dan Bass (danielbass)
Date: 12/17/04


Date: Fri, 17 Dec 2004 13:43:23 -0000


something like this?

string myLine = DrawLine ( 80 );

string DrawLine( int length )
{
     StringBuilder sb = new StringBuilder();
     for ( int x = 0; x < length; x++)
     {
          sb.Append("-");
      }

     return sb.ToString();
}

"John Sutor" <john_sutor@cinfin.com> wrote in message
news:ud5Dg0D5EHA.3416@TK2MSFTNGP09.phx.gbl...
>
>
> I want to write a line to a text file that looks like this
> -----------------------------------------------
> How can I do this without doing this manually and assigning it to a
> variable.
> Ex. string x = Char('-') * 80
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!