Horje
asp.net get most recent file in directory Code Example
asp.net get most recent file in directory
var directory = new DirectoryInfo("C:\\MyDirectory");
var myFile = (from f in directory.GetFiles()
             orderby f.LastWriteTime descending
             select f).First();

// or...
var myFile = directory.GetFiles()
             .OrderByDescending(f => f.LastWriteTime)
             .First();




Csharp

Related
how to create more accurate searching c# Code Example how to create more accurate searching c# Code Example
switch case with 2 variables c# Code Example switch case with 2 variables c# Code Example
In ASP.NET Core how check if request is local Code Example In ASP.NET Core how check if request is local Code Example
c# object to xmldocument Code Example c# object to xmldocument Code Example
autoclicker for yes/no in c# indicator Code Example autoclicker for yes/no in c# indicator Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10