if (System.IO.Directory.Exists("D:/notes")) { String[] year = Directory.GetDirectories("D:/notes/"); String[] file = Directory.GetFiles("D:/notes/");}