Help One Dimension File Read

Can someone help me in figuring out the proper test parameters so that I'm able to output the first name of the customer that inputs their ID number.
Here is my text file:
3
Titanic
Kate Winslet
Leonardo Dicaprio
Cameron
cameron
20th Century Fox
2

Donald Duck 1
Mickey Mouse 2
Minnie Mouse 3
Goofy Dog 4

Here is my code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include <iostream>
#include <string>
#include <fstream>
using namespace std;


int main()
{
	string targetID, totalMovies, movieT,fname, lname, memID;
	cout <<"Enter member ID: ";
	getline(cin,targetID);
	string* memberID;
	ifstream memberFile;
	memberFile.open("Hey.txt");
	memberID = new string[20];

for(int i =0; i < 20; i++)
{
	string fname, lname, memID;
        memberFile >> fname >> lname >> memID;
	memberID[i] = fname +" "+ lname +" "+ memID;
}

for(int i = 0; i < 20; i++)
{
	
	if((targetID == memberID[i]))
	{

		cout << "Welcome " << fname << " ";
		
		
	}
}
system("PAUSE");
}


Topic archived. No new replies allowed.