I have a data base of 2000 people the following orientation:
[phone-number] [Name] [address] [zipcode]
all seperated by spaces in a text file.
I want a way to read this data into a struct:
struct person
{
long phone number[10];
string name[30];
string address[100];
int zip[5];
}
The address and the person's name (michael j. smith)have spaces in them.
What would be the best way to go about reading the whole file into this struct? or should I use something else instead of a struct?