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
Hemant SrivastavaPosted Jul 9, 2013, 10:29 AM
DateTime creationTime = File.GetCreationTime("YourFile.txt");
DateTime lastWriteTime = File.GetLastWriteTime("YourFile.txt");
DateTime lastAccessTime = File.GetLastAccessTime("YourFile.txt");
Hemant SrivastavaPosted Jul 8, 2013, 11:56 AM