I am using this to read input:
istringstream iss;
string typ, data;
char c1, c2;
iss >> skipws >> c1 >> typ >> noskipws >> c2 >> data;
input line can look like this " #text Markup used in this document is compatible with "
without quotes
what I want to achieve is that after my code variable data will contain "Markup used in this document is compatible with "
but instead this code ignores everything after word Markup
even after I specified that I dont want it to skip whitespaces with noskipws