I am very new to programming so please excuse this stupid question. I want to access CSV files in excel, but I'm not sure how to count the number of rows in the file. Should I use feof() and how?
*FILE *data;
int count;
data = fopen("test.csv", "r");
while( feof(data) == 0 )
{
count++;
}
printf("%d", count);*