Working with files in C#

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.

How to create a file and edit it?

You can create a file like this:

This will create a file “test.txt” in (more…)

Read More