import csv
file1 = "Root/20Cent.txt"
rows = []
result = 0
i = 0
with open(file1) as csvfile:
infile = csv.reader(csvfile)
header = next(infile)
for row in infile:
rows.append(row)
for i in infile:
result = result + i
i = i + 1
print(str(result))
Error given:
result = result + i TypeError: unsupported operand type(s) for +: 'int' and 'list'
What am I doing wrong or not including that would help me read my file element by element and add them all together?