In this tutorial we will be working with files. How to create a file, edit it, rename a file make a copy an existing file or move it etc.
First thing you should do is to reference the System.IO namespace.
All the classes that will help you handle files are located in this namespace.
using System.IO;
How to create a file and edit it?
You can create a file like this:
string path = @"C:\test.txt"; File.Create(path);
This will create a file “test.txt” in Continue reading




