static void Main(string[] args) { const string str = @"#first comment some: element #inline comment #another comment other: element #in #le comment"; var file = new MemoryFile(str); var s = new PENIS(file); Console.WriteLine(file.Content); s.Set("other", "i don't know"); s.Save(); Console.WriteLine("============================="); Console.WriteLine(file.Content); s.Remove("some"); s.Save(); Console.WriteLine("============================="); Console.WriteLine(file.Content); Console.ReadKey(true); }