@ky0ko Here are a couple of methods in bash, bc, and awk, which I *think* could be adapted to one on each line: https://stackoverflow.com/questions/2572495/read-from-file-and-add-numbers
You could also go the C route, open the file, read each line into one array (char**), use atoi (or atof or whatever) to get another array of actual numbers, then sum over that array.
@auravulpes i ended up doing this
count=0; for num in $(cat numlog); do count=$(($count+$num)); done; echo $count
@ky0ko Actually, now that I think about it, assuming you know what your data is, you could just use fscanf instead of going the read into one array then atoi into another route