How could put input to char* array from the text file using function below? Many thanks.
char* data2[] = { 0 };
char ch;
fstream fin("../level_15.txt", fstream::in);
while (fin >> noskipws >> ch) {
cout << ch ; // Or whatever
}
I am trying to get an array of structure like this below:
char* data[] = {
/// level 1
"aaaaaaaaaaaaaa",
"bbbbbbbbbbbbbb"
};
cat example.txt
"aaaaaaaaaaaaaa",
"bbbbbbbbbbbbbb"