Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# remove invalid directory characters

public string ReplaceInvalidChars(string filename)
{
    return string.Join("_", filename.Split(Path.GetInvalidFileNameChars()));    
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #invalid #directory #characters
ADD COMMENT
Topic
Name
1+1 =