public static List <string> ReadTxt(string fileName, DateTime dateDebut, DateTime dateFin) { if (!File.Exists(fileName)) { return(new List <string>()); } List <string> l = new List <string>(); using (TxtFileReader reader = new TxtFileReader(fileName)) { l = reader.ReadRow(dateDebut, dateFin); } return(l); }
public static List <string> ReadTxt(string fileName) { if (!File.Exists(fileName)) { return(new List <string>()); } List <string> l = new List <string>(); using (TxtFileReader reader = new TxtFileReader(fileName)) { l = reader.ReadRow(); } return(l); }