why doesn't this work? I am not getting an error, my program just crashes.
ifstream inStream;
inStream.open("Sample Credit Card numbers.txt");
string next[100];
for (int i = 0;!inStream.eof();i++)
{
next[i] = inStream.get();//fill in the array with numbers from file
}
i think that the !inStream.eof() part of the for loop may be the problem but i am not really sure.