Yeah, I've made a little test code with it and it works fine =D thanks. Here is the code:
Code:
#include <iostream>
#include <string>
#include <sstream>
#define ARRAY_SIZE 100
using namespace std;
int main()
{
string tokens[ARRAY_SIZE], source("Here|is|some|text");
istringstream iss(source);
int i=0;
while(getline(iss, tokens[i], '|'))
{
cout << tokens[i] << endl;
i++;
}
return 0;
}
I wasnt entirely sure that the statement inside while was actually run, thought it only evaluated as an anonymous bool variable. ty all