void SaveCSVDataClicked() { List <string[]> data = StorageCSV.Load("Base1"); foreach (var row in data) { row[2] = "Question 1"; print("Id = " + row[0] + ", Level = " + row[1] + ", Question = " + row[2]); } data.Insert(0, new string[] { "Id", "Level", "Question", "wasCorrected", "Time" }); StorageCSV.Save("Base1.csv", data); }
void LoadCSVDataClicked() { List <string[]> data = StorageCSV.Load("Base1"); if (data.Count > 0) { foreach (var row in data) { print("Id = " + row[0] + ", Level = " + row[1] + ", Question = " + row[2]); } } else { print("The CSVFile is empty."); } }