ok so im having some success with my string manipulation, but i still have a problem.
this is what i have so far:
ifstream fInputVec(stVecFile.c_str(), std::ios::in);
ssFileLine >> stFileWord;
// If string is a blank space, skip to next >>
if (stFileWord.length() == 0)
// PROBLEM IS HERE
if (stFileWord.substr(1, 1) == "<")
stFileWord = stFileWord.substr(2, stFileWord.length() - 1);
cout << stFileWord << endl;
ok so the problem im having is that in my stream i will have the two '<' '>' characters either at the beginning of the stream or at the end. i need to basically delete them from my stream.
the above code was an attempt to resize my string if the '<' char was at the start of it. it doesnt work. for some reason the program just doesnt realise that '<' is the first letter of the string.
does anyone have any working and more efficient solutions?