The only question i found that tried to help me was this one C++: splitting a string into an array. I'm new to c++ and i need to have an array of string that cointain each of these words that i have in this char.
Here is the code:
s3eFile* file = s3eFileOpen("chatTest/restrict_words.txt","rb");
int len = s3eFileGetSize(file);
char* temp = new char[len];
if (file!=NULL)
{
s3eFileRead(temp,len,1, file);
s3eFileClose(file);
}
So i need to make this temp to turn in to an array so i can work with it? There's a way?