DirectoryInfo folder = new DirectoryInfo(MONREPERTOIRE); foreach (FileInfo file in folder.GetFiles((MONFICHIER))) { if (oldest == null || file.LastWriteTime < oldest.LastWriteTime) { oldest = file; } if (oldest != null) { }
DirectoryInfo folder = new DirectoryInfo(MONREPERTOIRE); foreach (FileInfo file in folder.GetFiles((MONFICHIER))) { if (oldest == null || file.LastWriteTime < oldest.LastWriteTime) { oldest = file; } if (oldest != null) { }