sort file name with C#

53

sort file name with C# -

string[] files = Directory.GetFiles(path).OrderBy(f => int.Parse(Path.GetFileNameWithoutExtension(f))).ToArray();

Comments

Submit
0 Comments