Reading and Writing XML in C# - 2012-07-25

>In this article, you will see how to read and write XML documents in Microsoft .NET using C# language. > >Reading XML Documents >In my sample application, I'm using books.xml to read and display its data through XmlTextReader. This file comes with VS.NET samples. You can search this on your machine and change the path of the file in the following line: >XmlTextReader textReader = new XmlTextReader("C:\\books.xml"); >Or you can use any XML file. >The XmlTextReader, XmlNodeReader and XmlValidatingReader classes are derived from XmlReader class. Besides Xm

Create a Directory in C# - 2012-07-19

>C# Directory Class > >The System.IO.Directory class in the .NET Framework class library provides static methods for creating, copying, moving, and deleting directories and subdirectories. Before you can use the Directory class, you must import the System.IO namespace. > >using System.IO; > >Create a Directory > >The Directory.CreateDirectory method creates a directory in the specified path with the specified Windows security. You can also create a directory on a remote compute. > >The followin