I'm reading a text file line by line with this code.
fstream reader;
string text;
string readingArray[];
int length2;
while (getline(reader, text)) {
readingArrray[lenght2]=text;
lenght2++;
}
While reading I've got a line ' SAY "Welcome to the jungle" '. And I want to seperate to two parts this line, like SAY and "Welcome to the jungle".
So I need; firstly the program should read the line until " character. After that program should read the part between " and \n characters. How can i do that?