Combine string array to create path - CSharp File IO

CSharp examples for File IO:Path

Description

Combine string array to create path

Demo Code

using static System.Console;
using static System.IO.Directory;
using static System.IO.Path;
using static System.Environment;
class Program//from   w w w .  j  a  v a 2 s . c o  m
{
   static void Main(string[] args)
   {
      var customFolder = new string[] { "aaa", "Code", "C", "OutputFiles" };
      string dir = Combine(customFolder);
      WriteLine($"Working with: {dir}");
   }
}

Result


Related Tutorials