Ok, I don't knwo how to set a delimiter, so that it stops reading a string. I have read in name, address etc, from a file, but am not sure how to get it to stop after the first name. Can you guys tell me how to do that? here is the function.
void addressBookType::readFile() //reads the data from a file using object Book of extPersonType
string first, last, adr, cit, st, member;
int size, month, day, year, phone;
for(size = 0; size <= 5; size++)
Book[size].setPersonType(first, last, month, day, year, adr, cit, st, z, member, phone);