If i understand you right, you want to repeat a character automatically.
Then, try the cool overloaded String constructor of signature:
...ctor ( char c, int count )
// Writes
"--------------------------------------------------------------------------------"
sw.WriteLine(new string('-', 80));