public static System.String[] WriteToStringLines(VyattaConfigNode Root) { string Result = WriteToString(Root); Result = Result.TrimEnd(new char[] { '\n' }); return(Result.Split(new char[] { '\n' })); }
public static string WriteToString(VyattaConfigNode Root) { StringBuilder SB = new StringBuilder(); Root.ToString(SB, -1); return(SB.ToString()); }
public static void WriteToFile(VyattaConfigNode Root, string TargetFilename) { StringBuilder SB = new StringBuilder(); Root.ToString(SB, -1); using (TextWriter FileOut = new StreamWriter(TargetFilename)) { FileOut.NewLine = "\n"; FileOut.Write(SB.ToString()); } }
public void AddChild(VyattaConfigNode NewNode) { Children.Add(NewNode); }