public static getStream ( string filename ) : Stream | ||
filename | string | |
return | Stream |
// Entry point. public static void Main(string[] args) { string filename = "temp.xml"; ManagedNodeWriter mw = new ManagedNodeWriter(filename); ManagedNodeWriter mnw = new ManagedNodeWriter(); mnw.PutPattern("X"); int count = 0; do { mnw.PutPattern("E/"); count++; } while (count < 65536); mnw.PutText("<a/>"); mnw.Finish(); StreamWriter sw = new StreamWriter(FilePathUtil.getStream("deep.xml")); sw.Write(mnw.GetNodes()); sw.Dispose(); }
public CustomWriter(string filename, XmlWriterSettings xws) { _writer = XmlWriter.Create(FilePathUtil.getStream(filename), xws); }
/// /// Overloaded Constructor with FileName to Write /// public ManagedNodeWriter(string filename) { Init(); _textWriter = new StreamWriter(FilePathUtil.getStream(filename)); }