//reads text file of names #include main() { int count=0; char name[20]; ifstream input; input.open("c:/names.txt",ios::in); //use ios::app to append if (input.fail()) {cout<<"File error\n"; } //file did not open else { while (!input.eof()) { input>>name; count++; cout<