static void Main33(string[] args) { var controller = new CSVFileController(); Console.WriteLine(controller.GetListSize); controller.Remove(1); Console.WriteLine(controller.GetListSize); Console.ReadKey(); }
static void Main22(string[] args) { var writer = new CSVFileWriter("test.csv"); var csv_elem_1 = new CSVFileInfo("blabla", "v1.3", "222"); var csv_elem_2 = new CSVFileInfo("blsssa", "2.3", "112"); var csv_elem_3 = new CSVFileInfo("bl", "v22.3", "332"); writer.WriteCSV(csv_elem_1); writer.WriteCSV(csv_elem_2); writer.WriteCSV(csv_elem_3); writer.Flush(); writer.Close(); var reader = new CSVFileReader("test.csv"); var list = reader.ReadCSV <CSVFileInfo>(); foreach (var elem in list) { foreach (var single_elem in elem.GetCSVData) { Console.Write(single_elem.ToString() + " "); } Console.WriteLine(); } Console.WriteLine(); var controller = new CSVFileController(); controller.Add(@"D:\Game's\RivaTuner Statistics Server\EncoderServer.exe"); controller.Load("test.csv"); Console.WriteLine(controller.GetAtIndex(0)[1]); Console.ReadKey(); }