i use matlab to get the data.....after that i write the data in text file.......afterthat i want read the data in c++.......how can i know how many data i have....?
Both are quite easily possible. Just create a loop and keep it going until you've grabbed all the data from your file. If you want a total, add the newly grabbed value to a total variable in each iteration. If you want a count of how many values, just increment a counter at each iteration.