Answers for "create a folder with file handling in c#"

C#
2

how to create a new folder with c#

string dir = @"C:test";
// If directory does not exist, create it
if (!Directory.Exists(dir))
{
    Directory.CreateDirectory(dir);
}
Posted by: Guest on July-17-2021
3

how to create a folder in c#

// Directory class is in the System.IO namespace
Directory.CreateDirectory(dir);
Posted by: Guest on March-06-2021

Code answers related to "create a folder with file handling in c#"

C# Answers by Framework

Browse Popular Code Answers by Language