I need to locate certain strings within a file that I've created and am not sure how to do it. I need to find, for instance, all players that are from Arizona within this...

Code:
 Derek , Anderson,0,Oregon State,Baltimore Ravens
 Kyle , Boller,3,California,Baltimore Ravens
 Calvin , Carlyle,1,Oregon State,Baltimore Ravens
 Devard , Darling,2,Washington State,Baltimore Ravens
 Dwan , Edwards,2,Oregon State,Baltimore Ravens
 Todd , Heap,5,Arizona State,Baltimore Ravens
 Pat , Johnson,7,Oregon,Baltimore Ravens
 Chris , McAlister,7,Arizona,Baltimore Ravens
 Edwin , Mulitalo,7,Arizona,Baltimore Ravens
 Jonathan , Ogden,10,UCLA,Baltimore Ravens
 Terrell , Suggs,3,Arizona State,Baltimore Ravens
 Tim , Euhus,2,Oregon State,Buffalo Bills
 Wendell , Hunter,0,California,Buffalo Bills
 Rian , Lindell,6,Washington State,Buffalo Bills
 Lawyer , Milloy,10,Washington,Buffalo Bills
 Ryan , Neufeld,5,UCLA,Buffalo Bills
 Coy , Wire,4,Stanford,Buffalo Bills
 Rashad , Bauman,4,Oregon,Cincinnati Bengals
 Duane , Clemons,10,California,Cincinnati Bengals
 Kori , Dickerson,1,Southern California,Cincinnati Bengals
 T.J. , Houshmandzadeh,5,Oregon State,Cincinnati Bengals
 Chad , Johnson,5,Oregon State,Cincinnati Bengals
 Levi , Jones,4,Arizona State,Cincinnati Bengals
 Deltha , O'Neal,6,California,Cincinnati Bengals
 Carson , Palmer,3,Southern California,Cincinnati Bengals
 Tab , Perry,0,UCLA,Cincinnati Bengals
 Terrell , Roberts,3,Oregon State,Cincinnati Bengals
 Steven , Vieira,0,UCLA,Cincinnati Bengals
 Brant , Boyer,10,Arizona,Cleveland Browns
 Kirk , Chambers,2,Stanford,Cleveland Browns
 Reuben , Droughns,5,Oregon,Cleveland Browns
 Jason , Fisk,11,Stanford,Cleveland Browns
 Amon , Gordon,2,Stanford,Cleveland Browns
 Sultan , McCullough,1,Southern California,Cleveland Browns
 Daylon , McCutcheon,7,Southern California,Cleveland Browns
 Omar , Nazel,1,Southern California,Cleveland Browns
 Dennis , Northcutt,6,Arizona,Cleveland Browns
 Terrelle , Smith,6,Arizona State,Cleveland Browns
 Mason , Unck,2,Arizona State,Cleveland Browns
 Roc , Alexander,2,Washington,Denver Broncos
 Marques , Anderson,4,UCLA,Denver Broncos
 John , Lynch,13,Stanford,Denver Broncos
 Karl , Paymah,0,Washington State,Denver Broncos
 Jake , Plummer,9,Arizona State,Denver Broncos
 Markus , Steele,4,Southern California,Denver Broncos
 Zach , Wilson,1,Southern California,Denver Broncos
 D.D. , Acholonu,1,Washington State,Houston Texans
 Jason , Bell,5,UCLA,Houston Texans
 Mark , Bruener,11,Washington,Houston Texans
 Jerry , DeLoach,5,California,Houston Texans
 Drew , Hodgdon,0,Arizona State,Houston Texans
 Junior , Ioane,5,Arizona State,Houston Texans
 Chris , Johnson,0,Arizona,Houston Texans
 Chris , McKenzie,0,Arizona State,Houston Texans
 Billy , Miller,6,Southern California,Houston Texans
 Zeke , Moreno,5,Southern California,Houston Texans
 Bryan , Pittman,3,Washington,Houston Texans
 Dashon , Polk,6,Arizona,Houston Texans
 Jason , Simmons,8,Arizona State,Houston Texans
 Carlos , Williams,0,Arizona,Houston Texans
 Kailee , Wong,8,Stanford,Houston Texans
 Jason , David,2,Washington State,Indianapolis Colts
 Bryan , Fletcher,1,UCLA,Indianapolis Colts
 Makoa , Freitas,3,Arizona,Indianapolis Colts
 Matt , Giordano,0,California,Indianapolis Colts
 Tarik , Glenn,9,California,Indianapolis Colts
 Larry , Tripplett,4,Washington,Indianapolis Colts
 Troy , Walters,6,Stanford,Indianapolis Colts
 Rich , Alexis,1,Washington,Jacksonville Jaguars
 Marcell , Allmond,1,Southern California,Jacksonville Jaguars
 Khalif , Barnes,0,Washington,Jacksonville Jaguars
 Rob , Meier,6,Washington State,Jacksonville Jaguars
 Lee , Webb,0,Southern California,Jacksonville Jaguars
 Reggie , Williams,2,Washington,Jacksonville Jaguars
 George , Wrighster,3,Oregon,Jacksonville Jaguars
 Scott , Fujita,4,California,Kansas City Chiefs
 Tony , Gonzalez,9,California,Kansas City Chiefs
 Damon , Huard,7,Washington,Kansas City Chiefs
 Sammy , Knight,9,Southern California,Kansas City Chiefs
 Freddie , Mitchell,5,UCLA,Kansas City Chiefs
 Nick , Murphy,2,Arizona State,Kansas City Chiefs
 Samie , Parker,2,Oregon,Kansas City Chiefs
 Junior , Siavii,2,Oregon,Kansas City Chiefs
 Jonathan , Smith,1,Washington State,Kansas City Chiefs
 Will , Svitek,0,Stanford,Kansas City Chiefs
 John , Welbourn,6,California,Kansas City Chiefs
 Brendon , Ayanbadejo,3,UCLA,Miami Dolphins
 Danny , Farmer,4,UCLA,Miami Dolphins
 A.J. , Feeley,3,Oregon,Miami Dolphins
 Alex , Holmes,0,Southern California,Miami Dolphins
 Frank , Middleton,9,Arizona,Miami Dolphins
 Will , Poole,2,Southern California,Miami Dolphins
 Kris , Richard,4,Southern California,Miami Dolphins
 Junior , Seau,16,Southern California,Miami Dolphins
 Chris , Solomona,0,Oregon,Miami Dolphins
 Donnie , Spragan,4,Stanford,Miami Dolphins
 Manuel , Wright,0,Southern California,Miami Dolphins
 Tully , Banta-Cain,3,California,New England Patriots
 Tedy , Bruschi,10,Arizona,New England Patriots
 Matt , Cassel,0,Southern California,New England Patriots
 Corey , Dillon,9,Washington,New England Patriots
 Victor , Leyva,3,Arizona State,New England Patriots
 Wesly , Mallard,4,Oregon,New England Patriots
 Willie , McGinest,12,Southern California,New England Patriots
 Josh , Miller,10,Arizona,New England Patriots
 Chad , Morton,6,Southern California,New England Patriots
 Tom , Sverchek,0,California,New England Patriots
 Andre , Torrey,0,Arizona,New England Patriots
 Jed , Weaver,7,Oregon,New England Patriots
 Erik , Coleman,2,Washington State,New York Jets
 Nnamdi , Asomugha,3,California,Oakland Raiders
 Brad , Badger,9,Stanford,Oakland Raiders
 Justin , Fargas,3,Southern California,Oakland Raiders
 DeLawrence , Grant,4,Oregon State,Oakland Raiders
 Teyo , Johnson,3,Stanford,Oakland Raiders
 Ryan , Riddle,0,California,Oakland Raiders
 Marquis , Smith,4,California,Oakland Raiders
 Marques , Tuiasosopo,4,Washington,Oakland Raiders
 Langston , Walker,4,California,Oakland Raiders
 Andrew , Walter,0,Arizona State,Oakland Raiders
 Chidi , Iwuoma,5,California,Pittsburgh Steelers
 Travis , Kirschke,8,UCLA,Pittsburgh Steelers
 Tommy , Maddox,9,UCLA,Pittsburgh Steelers
 Troy , Polamalu,3,Southern California,Pittsburgh Steelers
 Marvel , Smith,6,Arizona State,Pittsburgh Steelers
 Zach , Tuiasosopo,0,Washington,Pittsburgh Steelers

i then need to print out the rest of the data contained within the line. This isn't going to be hard, but i'm not sure how to search for the "college" field... here's the rest of my code. I am working on "Option 3" at the bottom...

Code:
#include <iostream>
#include <fstream>
#include <string>

using namespace std;



struct initInfo
{
	char number [5];
	char lastName [20];
	char firstName [20];
	char position [5];
	char yearsExp [5];
	char college [20];
	char nflTeam [30];

};

struct pac10
{
	char firstName [20];
	char lastName [20];
	char yearsExp [5];
	char college [30];
	char nflTeam [50];
};

struct big10
{
	char firstName [20];
	char lastName [20];
	char yearsExp [5];
	char college [30];
	char nflTeam [50];
};

int main()
{


	fstream file_op("pac10.txt", ios::out);
	fstream file_op1("big10.txt", ios::out);


	ifstream playersFile;;

	
	initInfo info;
	pac10 infoPac10;
	big10 infoBig10;

	int option;
	int i, p;
	int j = 0;

	string nfl[32];
	nfl [0] = "Baltimore Ravens";
	nfl [1] = "Buffalo Bills";
	nfl [2] = "Cincinnati Bengals";
	nfl [3] = "Cleveland Browns";
	nfl [4] = "Denver Broncos";
	nfl [5] = "Houston Texans";
	nfl [6] = "Indianapolis Colts";
	nfl [7] = "Jacksonville Jaguars";
	nfl [8] = "Kansas City Chiefs";
	nfl [9] = "Miami Dolphins";
	nfl [10] = "New England Patriots";
	nfl [11] = "New York Jets";
	nfl [12] = "Oakland Raiders";
	nfl [13] = "Pittsburgh Steelers";
	nfl [14] = "San Diego Chargers";
	nfl [15] = "Tennessee Titans";
	nfl [16] = "Arizona Cardinals";
	nfl [17] = "Atlanta Falcons";
	nfl [18] = "Carolina Panthers";
	nfl [19] = "Chicago Bears";
	nfl [20] = "Dallas Cowboys";
	nfl [21] = "Detroit Lions";
	nfl [22] = "Green Bay Packers";
	nfl [23] = "Minnesota Vikings";
	nfl [24] = "New Orleans Saints";
	nfl [25] = "New York Giants";
	nfl [26] = "Philadelphia Eagles";
	nfl [27] = "San Francisco 49ers";
	nfl [28] = "Seattle Seahawks";
	nfl [29] = "St. Louis Rams";
	nfl [30] = "Tampa Bay Buccaneers";
	nfl [31] = "Washington Redskins";
	
	string pac10[10];
	pac10 [0] = "Arizona";
	pac10 [1] = "Arizona State";
	pac10 [2] = "California";
	pac10 [3] = "Oregon";
	pac10 [4] = "Oregon State";
	pac10 [5] = "Southern California";
	pac10 [6] = "Stanford";
	pac10 [7] = "UCLA";
	pac10 [8] = "Washington";
	pac10 [9] = "Washington State"; 

	string big10[11];
	big10 [0] = "Illinois";
	big10 [1] = "Indiana";
	big10 [2] = "Iowa";
	big10 [3] = "Michigan";
	big10 [4] = "Michigan State";
	big10 [5] = "Minnesota";	
	big10 [6] = "Northwestern";	
	big10 [7] = "Ohio State";	
	big10 [8] = "Penn State";
	big10 [9] = "Purdue";
	big10 [10] = "Wisconsin";


	playersFile.open("players.txt");

	if (playersFile.fail())
	{
		cout<<"An error occured while trying to open the file."<<endl;
		system ("PAUSE");
		exit (1);
	}

	while (!playersFile.eof())
	{

		playersFile.getline(info.number, 11, ',');
		playersFile.getline(info.lastName, 20,  ',');
		playersFile.getline(info.firstName, 20, ',');
		playersFile.getline(info.position, 20, ',');
		playersFile.getline(info.yearsExp, 5, ',');
		playersFile.getline(info.college, 50, ',');
		playersFile.getline(info.nflTeam, 40);
			

		for (int n=0; n<10; n++)
		{
			if (pac10[n]==info.college)
				file_op<<info.firstName<<","<<info.lastName<<","<<info.yearsExp<<","<<info.college<<","<<info.nflTeam<<endl;
		}
			
		for (int z=0; z<10; z++)
		{
			if (big10[z]==info.college)
				file_op1<<info.firstName<<","<<info.lastName<<","<<info.yearsExp<<","<<info.college<<","<<info.nflTeam<<endl;
		}

	
	}
	playersFile.close();
	file_op.close();
	file_op1.close();
	
cout<<"Enter an option number between 1 and 7: ";
cin>>option;

while (option > 7)
{
	cout<<"Option must be lower than 7..."<<endl;
	cout<<"Try it again... Enter an option between 1 and 7: ";
	cin>>option;
}

while (option < 1)
{
	cout<<"There is no option lower than 1..."<<endl;
	cout<<"Try it again... Enter an option between 1 and 7: "<<endl;
	cin>>option;
}


/*
if (option == 1)
{
	playersFile.open("players.txt");


	i = atoi(info.yearsExp);
*/

if (option == 2)
{
	file_op.open("pac10.txt");

	while (!file_op.eof())
	{

	file_op.getline(infoPac10.firstName, 50, ',');
	file_op.getline(infoPac10.lastName, 50, ',');
	file_op.getline(infoPac10.yearsExp, 10, ',');
	file_op.getline(infoPac10.college, 50, ',');
	file_op.getline(infoPac10.nflTeam, 50);

	cout<<infoPac10.firstName<<infoPac10.lastName<<", "<<infoPac10.yearsExp<<", "<<infoPac10.college<<endl;

	}
	file_op.close();
}


if (option == 3)
{
	file_op.open("pac10.txt");

	while (!file_op.eof())
	{
		
		file_op.getline(infoPac10.firstName, 50, ',');
		file_op.getline(infoPac10.lastName, 50, ',');
		file_op.getline(infoPac10.yearsExp, 10, ',');
		file_op.getline(infoPac10.college, 50, ',');
		file_op.getline(infoPac10.nflTeam, 50);

		(pac10[0] == infoPac10.college)
		cout<<infoPac10.firstName<<infoPac10.lastName<<", "<<infoPac10.yearsExp<<", "<<infoPac10.college<<endl;				
		 
		(pac10[1] == infoPac10.college)
		cout<<infoPac10.firstName<<infoPac10.lastName<<", "<<infoPac10.yearsExp<<", "<<infoPac10.college<<endl;
	}
	file_op.close();
}


if (option == 4)
{
	int q =0;

	file_op.open("pac10.txt");

	while (!file_op.eof())
	{

		file_op.getline(infoPac10.firstName, 50, ',');
		file_op.getline(infoPac10.lastName, 50, ',');
		file_op.getline(infoPac10.yearsExp, 10, ',');
		file_op.getline(infoPac10.college, 50, ',');
		file_op.getline(infoPac10.nflTeam, 50);

		p = atoi(infoPac10.yearsExp); 

		if (p > 5)
		{
		cout<<infoPac10.firstName<<infoPac10.lastName<<", "<<infoPac10.yearsExp<<", "<<infoPac10.college<<endl;
		q++;
		}
	}

	cout<<"Total number is: "<<q<<endl;
	file_op.close();
}


if (option == 5)
{
	file_op1.open("big10.txt");
	
	while (!file_op1.eof())
	{
		file_op1.getline(infoBig10.firstName, 50, ',');
		file_op1.getline(infoBig10.lastName, 50, ',');
		file_op1.getline(infoBig10.yearsExp, 10, ',');
		file_op1.getline(infoBig10.college, 50, ',');
		file_op1.getline(infoBig10.nflTeam, 50);

		cout<<infoBig10.firstName<<infoBig10.lastName<<", "<<infoBig10.yearsExp<<", "<<infoBig10.college<<endl;
	}
	file_op1.close();
}


if (option == 7)
{
	file_op1.open("big10.txt");

	while (!file_op1.eof())
	{

		file_op1.getline(infoBig10.firstName, 50, ',');
		file_op1.getline(infoBig10.lastName, 50, ',');
		file_op1.getline(infoBig10.yearsExp, 10, ',');
		file_op1.getline(infoBig10.college, 50, ',');
		file_op1.getline(infoBig10.nflTeam, 50);

		p = atoi(infoBig10.yearsExp); 

		if (p > 5)
		{
		cout<<infoBig10.firstName<<infoBig10.lastName<<", "<<infoBig10.yearsExp<<", "<<infoBig10.college<<endl;	
		}
	}

	file_op1.close();
}
	
cout<<"Number of players with 5 more years of exp. are:  "<<j<<endl;


return 0;

}