Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Obtaining oldest file in a directory
Message
De
17/09/2008 16:16:27
 
 
À
17/09/2008 16:05:10
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01348390
Message ID:
01348394
Vues:
17
>Hi All,
>
>I am looking for the quickest way to get the name of the oldes file of a specific pattern in a given directory. I can loop through the results of Directory.GetFiles() but wondering if there is a more efficient way.
>Thanks
>Tim

Why not just use adir() and then sort the array by the file date column?
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform