Hey, I am trying to read in data into 3 parallel arrays to manipulate later. When I test to see what is in each on after reading them in it is really messed up.

Here is my code:
Code:
#include <iostream.h>
#include <fstream.h>
#include <iomanip.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>

//Global Variables
ifstream infile;
ofstream outfile;

typedef char string[30];

//Prototypes

int main()
{
string social[30],phone[30],name[30];
int i;
	infile.open("In599A.Dat");
		while(!infile.eof())
		{
			for(i=0;i<23;i++)
			{
			infile>>social[i]>>phone[i];
			infile.getline(name[i],30,'\0');
			

			}
		}
		for(int j=0;j<22;j++)
			cout << social[j] << endl;


	return 0;
}
Here is the contents of the file I am reading from:
Code:
526334512 2665312 Jones, Julie Claire
264910093 2689022 Morgan, James Walter
587194309 5441234 Allen, Mary Ann
264881234 2669128 Thompson, William C
267456543 2683139 Williamson, Terry H
587521937 2680145 Robertson, Susan Leigh
588552584 2661357 Yelverton, Ted W
267552894 2664422 Bolton, Rebecca Lynn
576885197 5451992 Edwards, Tracy Ann
234675891 2610094 Walker, LaTonya B
641225537 2664949 Young, Henry Clarke
247569311 2665278 Thompkins, Marcia R
455124690 2681189 Price, Adam Paul
426133299 2684518 Vickery, Kathy Ann
587023057 2685572 McPhail, Ann K
258199876 5446993 Clark, Rodney P
256451389 5441898 Robbins, Terry Lynn
456113278 5453358 Hickman, Susan Leigh
257126677 2668818 Upton, Richard P
487931470 2665001 Shaw, Anna Jane
289889637 2665017 Zachary, Phillip F
587366338 2610358 Calhoun, Roderick T
thanks.