I want to return 10 files only from a directory. Is this possible?
DirectoryInfo d = new DirectoryInfo(HttpContext.Current.Server.MapPath("~/xml"));
FileInfo[] files = d.GetFiles("*.xml");
This way returns all XML files, but I want to get just the first ten.