//Read in numbers from a file, print total #include #include using namespace std; int main(void) { double num, total=0; ifstream numbers; //input file stream numbers.open("c:/mycpp/numbers.txt"); //associates numbers with file if (numbers.fail()) //maybe the file doesn't exist, or protected cout<<"File error\n"; //cout is used to notify user of error else { while (!numbers.eof()) { //eof=end of file numbers>>num; //reads a number from the file cout<