This question has already been answered:
- How to cut string 1 answer
There is a string variable initialized in this way:
std::string str = "qwert\n" "khrkrvne\n" "hbkb124f";
Each line is separated from the other "\ n". How to work with each line separately?