To expand on the previous answer, try:
$poll_values = file("poll_data.txt");
while(list($line_num, $value) = each($poll_values)) {
$total_value += $value;
}
echo "Total: $total_value";
Basically, file() gets the contents of poll_values and puts them into an array (each line is a seperate entry in the array) look this up at:
http://www.php.net/file
then, we loop through them and continue adding the values for each line. Once this is done, you will have the total value. Hope that helps!
Chris King