What is the best way to generate an indented line from space characters. I mean something similar to this:
string indent = String.Join(" ", new String[indentlevel]);
s.Write(indent + "My line of text");
You can create your indention with this:
var indent = new string(' ', indentLevel * IndentSize);
IndentSize
would be a constant with value 4 or 8.