//Number of elements of the array const int N = 11; //Function Tabulated String to array void TabStringToArray(string str, string arr[]) { //Aux vars int pos = 0; //Read all for(int i = 0; i < N; i++) { //Find the next tab pos = str.find("\t"); //Get the substring arr[i] = str.substr(0, pos); //Cut the string str = str.substr(pos + 1); } }