If this is a c++ code then i would recommend moving to std::string instead of char* and use powerful std tools like fstream, stringstream etc . The link which you have specified gives detailed answer on how to do it
#include <string>
#include <sstream>
using namespace std;
.
.
.
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);
//Adding Code here
string str(temp);
stringstream sstr(str)
vector<string> str_array;
string extracted;
while(sstr.good()){
sstr>>extracted;
str_array.push_back(extracted);
}
//at this point all the strings are in the array str_array
s3eFileClose(file);
}
you can access the strings using iterator or by simple indexing like arrays str_array[i]