Manipulating Files with the File Object
Visual C# .NET includes a powerful namespace called System.IO (the IO object acts like an object property of the System namespace). Using various properties, methods, and object properties of System.IO, you can do just about anything you can imagine with the file system. In particular, the System.IO.File and System.IO.Directory objects provide you with extensive file and directory (folder) manipulation.
In the following sections, you'll continue to expand the project that you've created. You'll write code that manipulates the selected filenames by using the Open File Dialog and Save File Dialog controls.
The code you'll write in the following sections is “the real thing.” For instance, the code for deleting ...