I'm making a program which gets me a list, but the list is not in order. I need to list to be in order like...
1.txt
2.txt
3.txt
However, it's coming out like
2.txt
1.txt
3.txt
All in random order. I am using
foreach (var file in d.GetFiles("*.txt"))
{
tosend = tosend + file.Name + "\n";
}
I don't want a single string. After it gets the file name it's going to readtext of other files its set and add it. So like [1.txt] Text