Hello, Good Night
I have a simple .CSV file, containing only two columns, separated by a comma and the new line, as an example:
0.001,-9.623
0.098,2.540
1.000,-1.002
And you need to separate them preferably in two vectors, or in an array (2 columns per 1300 rows). I tried to change the commas by whitespace but did not give, as in the fraction
for(n = 0; n <= AMOSTRAS_LINHAS, n++)
{
fscanf(amostras, "%f %f", &tempo[n], &tensao[n])
}
The result of printing is always zero for both, I know the problem is in fscanf, but I can no longer see, there is also the possibility of using strtok (), but I did not see a solution with it either, if anyone can elucidate how to approach the problem gratefully.