how to read each line and make calculation

I have a txt file, and it has 4 columns and 20 rows.
What I need is to find a calculation for each of the lines.
For example, for the first line (=first row), I need to add the values of column 2, 3 and 4 --> then output the result. I need to do this for each of the rows.
I have no clue where to start, please help me.

What I have done is open the txt file and my data gets displayed on the console window.
How is the data delimited?
Topic archived. No new replies allowed.