static void Main(string[] args) { string path = @"htmlToRead.html"; string readText = File.ReadAllText(path); NodeParser nodeParser = new NodeParser(); INode nodeTree = new NodeBase(); nodeTree.Add(nodeParser.Parse(readText)); //NodeWriter.Write(nodeTree); Console.WriteLine(readText); }