Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

sort file name with C#

string[] files = Directory.GetFiles(path).OrderBy(f => int.Parse(Path.GetFileNameWithoutExtension(f))).ToArray();
Source by www.codeproject.com #
 
PREVIOUS NEXT
Tagged: #sort #file
ADD COMMENT
Topic
Name
3+5 =