Author Archives: compitionpoint - Page 16
XML Document Object Model
The .NET framework offers classes that can read and manipulate XML documents. These classes are located in the .NET uses the XML Document Object Model which is a set of classes that…
Extensible Markup Language
Extensible Markup Language (XML) allows you to store data in a text and structured format. It is widely used as a database alternative and for storing application configuration information. XML…
Compressing and Decompressing a Text File
When the size of files becomes large, it’s a good idea to compress them. Compression is a process of reducing the overall size of a file. The process involves finding…
Writing to a Text File
Writing to text files are useful when you want a way of permanent storage of your data. Although databases and XML files are more popular choices, text files are still…
C# System.IO.Path Class
The ;class is a utility class that has methods for constructing paths of files and directories. Although you can simply use simple string concatenation and methods, using the Path class makes it easier…
C# System.IO.DirectoryInfo Class
The ;class represents a directory in your file system. Its capabilities are similar to the ;class. You need to create an instance of DirectoryInfo class to make use of its properties…
C# System.IO.Directory Class
The ;class offers methods for creating, deleting, moving, retrieving file lists, and many more. These methods are static so you don’t need to create an instance of that class. The following…
C# System.IO.FileInfo Class
The ;class is quite similar to the ;class in that, they are used for the same purpose of manipulating a file. The difference is that FileInfo does not have static methods so you need…
C# System.IO.File Class
The ;class is a static class that exposes methods to manipulate an existing file in a directory. Such methods allow you to create, delete, open, move or copy a file. As…
Absolute and Relative Paths
Files and directories can be uniquely identified using their path names. Path names specify where files and directories are located. When specifying path names, you can either use an absolute…