Suppose I have a text file, in this format:
1 1 1 1 1 99.5016 10.43 99.5016 99.5016 7.074 47.8012 10.43 7.074 7.074
2 1 1 1 1 99.5016 10.43 99.5016 99.5016 7.074 47.8012 10.43 7.074 7.074
3 1 1 1 1 99.5016 10.43 99.5016 99.5016 7.074 47.8012 10.43 7.074 7.074
And I want to add up all the elements in the ones column, for a certain number of lines. How would I do that?
I have this currently:
data = Import[
"/Users/myname/Documents/foldername/filename.txt", "Table"]
Total@data[[All, 2]];