i want to split those files means filenames and path.could you please tell me how to do that
IEnumerable
IEnumerable files ,in this i have two files
i want to split those files means filenames and path.could you please tell me how to do that
i want to split those files means filenames and path.could you please tell me how to do that
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Oct 24, 2013, 4:27 AM EDT
string[] directoryNames = new string[2];
string[] fileNames = new string[2];
for(int i = 0; i < 2; i++)
{
string filePath = files.ToArray()[i].FileName:
fileNames[i] = System.IO.Path.GetFileName(filePath);
directoryNames[i] = System.IO.Path.GetDirectoryName(filePath);
}
Sasi ReddyRank #4,458 · 342 reputationPosted Oct 24, 2013, 5:02 AM EDT