Answers for "c# combine filename and path"

1

system.io Path Combine

namespace: System.IO

//c#

var folder = "C:temp";
var fileName = "note.txt";
var completePath = Path.Combine(folder, filename);
//return: "C:tempnote.txt"

//vb
Dim folder As String = "C:temp";
Dim fileName As String = "note.txt";
Dim completePath As String = Path.Combine(folder, filename);
//return: "C:tempnote.txt"
Posted by: Guest on October-21-2020

Browse Popular Code Answers by Language