Answers for "create file in certain directory c#"

C#
0

file.create folder c#

Using System.IO; 

//gets the directory where the program is launched from and adds the foldername
string path = Path.Combine(Environment.CurrentDirectory, "foldername");

//Creates a directory(folder) if it doesen't exist
Directory.CreateDirectory(path);
Posted by: Guest on April-11-2021

C# Answers by Framework

Browse Popular Code Answers by Language