I have a excel file that look like this:
first Name       last Name
John             Doe
Sara             Boo
            string PATH = Directory.GetFiles(@"C:\file.xls);
        string connection = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + PATH + ";Extended Properties=Excel 12.0";
        OleDbConnection objConn = new OleDbConnection(connection);
        OleDbCommand objCmd = new OleDbCommand(string.Format(@"Select * From [Sheet1$A1:A43]"), objConn);
        OleDbDataAdapter objDatAdap = new OleDbDataAdapter();
        objDatAdap.SelectCommand = objCmd;
        DataSet ds = new DataSet();
        objDatAdap.Fill(ds);
I want to only get the values "John" and "Sara" from the file and do a compare method on it to see they match or not. any help?
 
     
     
    