ifstream is a type, so you need to create a variable of that type and then use dataFile to open the stream.
1 2 3 4 5
ifstream fin(dataFile);
// OR
ifstream fin;
fin.open(dataFile);
fin is an arbitrary name but I think of it as f(ile)in as opposed to c(onsole)in. You should also verify that the file was opened properly with an if statement or assert().