From the course: C# File System Tips and Tricks

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Creating a simple command line app

Creating a simple command line app - C# Tutorial

From the course: C# File System Tips and Tricks

Start my 1-month free trial

Creating a simple command line app

- [Instructor] Since we're only going to be working with the file system, there's not going to be much UI for us to display. Let's go ahead and create a simple console application to hold our code in. Here we'll select a C sharp console application and we're going to change it's name to file system test. I've also unchecked create directory for solution, since our projects going to be pretty simple we'll just put all the code in the root of our project folder. Let's click OK to continue. As you can see, we now have a very simple console application. If we run this, you'll see that the console appears and then immediately disappears. In order for us to keep the console open so we can see output as we continue to work with the file system, we'll need to add a little bit of code to our static main method. Let's type in console.read. This will force the console to stay open until you hit any key. If we rerun the application, you'll see that the console is now open. Let's go ahead and quit…

Contents