Combines an array of strings into a path. : Path « File Stream « C# / C Sharp
- C# / C Sharp
- File Stream
- Path
Combines an array of strings into a path.
using System;
using System.IO;
public class MainClass {
public static void Main() {
string[] paths = {@"c:\a", "2001", "media", "images"};
string fullPath = Path.Combine(paths);
Console.WriteLine(fullPath);
}
}
Related examples in the same category