Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

get directory of file c#

using System.IO;

string file = "C:Documentsfile.txt";
Path.GetDirectoryName(file);
 
PREVIOUS NEXT
Tagged: #directory #file
ADD COMMENT
Topic
Name
3+6 =