SyntaxFix
Write A Post
Hire A Developer
Questions
Short and simple:
new DirectoryInfo(path).GetFiles().OrderByDescending(o => o.LastWriteTime).FirstOrDefault();