I want to store lines from a file in an array and that's easy to do with a string:
std :: string query[100];
std::ifstream ifs(filename);
if (ifs.is_open())
{
while (getline(ifs, query[size]))
{
size++;
}
}
Problem is, I'm not allowed to use strings. How can I make this to work if query was a char* array?