array question

I just started learning c++ and am working on a problem that has a data file with 10 rows and 4 columns separated by a semi colon. I need to read the data into a two dimensional array and allow the user to select a line in order to view. This is what I have so far..

#include <iostream>
#include <fstream>
#include <cstdlib>
#include <string>
#include <limits>

using namespace std;


const int NUM_ROWS = 10;
const int NUM_COLS = 4;


int main()
{
// Declare objects

int data[NUM_ROWS][NUM_COLS];
int website = 0;
int option = 0;
int i, j;
char c;
string infile;
string description;
ifstream input;
ofstream output;

//Prompt user for name of input file
cout << "Enter the name of the input file: ";
cin >> infile;

// Open data file.
input.open(infile.c_str());
if (input.fail())
{
cerr << infile << " failed to open.\n";
system("PAUSE");

exit(1);
}

// Read data

for (i=0; i < NUM_ROWS; i++)
{

for (j=0; j < NUM_COLS; j++)
{

input >> data[i][j];
}

}

input.close();

cout << "1" << "\t" << "Google" << endl;
cout << "2" << "\t" << "Deviantart" << endl;
cout << "3" << "\t" << "Dragcave.net" << endl;
cout << "4" << "\t" << "Youtube.com" << endl;
cout << "5" << "\t" << "Facebook.com" << endl;
cout << "6" << "\t" << "Twitter.com" << endl;
cout << "7" << "\t" << "Blogger" << endl;
cout << "8" << "\t" << "Yahoo.com" << endl;
cout << "9" << "\t" << "Jibjab.com" << endl;
cout << "10" << "\t" << "Dragonworld.com" << endl;
cout << "\n" << endl;
cout << "\t" << "AVAILABLE OPTIONS" << endl;
cout << "\n" << endl;
cout << "D - DISPLAY LINE DESCRIPTIONS" << endl;
cout << "V - VIEW LINE DATA" << endl;
cout << "E - EDIT LINE DATA" << endl;
cout << "A - ADD LINE DATA" << endl;
cout << "S - SAVE AND ENCODE FILE" << endl;
cout << "X - EXIT PROGRAM" << endl;
cout << "\n";
cin >> infile;

while(infile == "D" || infile == "d")
{
cout << "1" << "\t" << "Google" << endl;
cout << "2" << "\t" << "Deviantart" << endl;
cout << "3" << "\t" << "Dragcave.net" << endl;
cout << "4" << "\t" << "Youtube.com" << endl;
cout << "5" << "\t" << "Facebook.com" << endl;
cout << "6" << "\t" << "Twitter.com" << endl;
cout << "7" << "\t" << "Blogger" << endl;
cout << "8" << "\t" << "Yahoo.com" << endl;
cout << "9" << "\t" << "Jibjab.com" << endl;
cout << "10" << "\t" << "Dragonworld.com" << endl;
cout << "\n" << endl;
cout << "\t" << "AVAILABLE OPTIONS" << endl;
cout << "\n" << endl;
cout << "D - DISPLAY LINE DESCRIPTIONS" << endl;
cout << "V - VIEW LINE DATA" << endl;
cout << "E - EDIT LINE DATA" << endl;
cout << "A - ADD LINE DATA" << endl;
cout << "S - SAVE AND ENCODE FILE" << endl;
cout << "X - EXIT PROGRAM" << endl;
cout << "\n";
cin >> infile;
}

while(infile == "V" || infile == "v")
{

cout << "Enter line number you wish to view: " << endl;
cin >> i;
cout << "Row Desc:\t" << (char)data[i][1] << endl;
cout << "Username:\t" << (char)data[i][2] << endl;
cout << "Password:\t" << (char)data[i][3] << endl;
cout << "Notes:\t" << (char)data[i][4] << endl;
break;

}


system ("PAUSE");
return 0;
}

I don't think anything from the file is reading into the array and also the user input to view the line should be between 1 and 10.
Here is what the text file looks like:

Google;KyleSmith01@gmail.com;Kyleman27;security question:White rabbit with a watch;
Deviantart;Dragonmaster27;Gandalfthegrey; NULL;
Dragcave.net;Dragonmaster27; DragonM27; Notes: username shortend;
Youtube.com;DragonMaster207; DragonM207; Notes: 207 not 27;
Facebook.com; KyleSmith27; KsmithFB; NULL;
Twitter.com; KyleSmith207; KsmithT; NULL;
Blogger; Kylesmith207; KyleSmith27; Notes: password 27 not 207;
Yahoo.com; KyleSmith.01@gmail.com; kSmith08; yahoo has a . before 01;
Jibjab.com;Kyle.207; KyleSmit.2.7; .2.7;
Dragonworld.com;KyleDragonMaster;DragonMkyle; ;
Read the file, cout the storage container, and verify the file is being read.

Does it say "failed to open" when you run this ?
Topic archived. No new replies allowed.