public static void LoadPlants() { Console.WriteLine(); Console.WriteLine("Loading plants..."); Console.WriteLine(); var directory = new DirectoryInfo("save"); var myFile = (from f in directory.GetFiles() orderby f.LastWriteTime descending select f).First(); var loadedPlants = Serializing.ReadFromBinaryFile <List <Plant> >(myFile.FullName); Scan.plants.AddRange(loadedPlants); Console.WriteLine(loadedPlants.Count + " plants loaded from : " + myFile.FullName); }