C# pick most recent file returning “most recent” based on ti
Hi Guys , I'm trying to find an answer to my problem which can be viewed here http://stackoverflow.com/questions/17484683/c-sharp-pick-most-recent-file-returning-most-recent-based-on-title-rather-than basically I want to go into a directory and find a number of files , if there are similarly named files I then want to pick the most recent , the code in the question seen in the link works for dividing but divides based on the title rather than by the time and I have absolutly no clue why
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Hemant SrivastavaRank #581 · 4.2K reputationPosted Jul 8, 2013, 7:56 AM EDT
Hemant SrivastavaRank #581 · 4.2K reputationPosted Jul 9, 2013, 6:29 AM EDT
DateTime creationTime = File.GetCreationTime("YourFile.txt");
DateTime lastWriteTime = File.GetLastWriteTime("YourFile.txt");
DateTime lastAccessTime = File.GetLastAccessTime("YourFile.txt");