int file = open("test.csv", "rcsv"); // Open in CSV read mode int n = countln(file); // Get the number of lines for(int i=0; i