i tried that, its still doing the same problem, im using Microsoft visual 6.0 professional c++
what i am having issues with is the following....
I am getting an entire line from a text file, I am thing breaking the string up letter by letter with...
string.substr(start position, end position)
// end pos is 1 in this case to just get a single letter.
im storing this letter into a buffer or what not and adding each new character to this buffer as well, so i am building a word.
then when i find a given letter such as a ; or a : or a = sign i stop building my word and i will have a complete word in my buffer.
the problem is when i read the very last word on a line when there is NOTHING after the last letter it will take that word i just built and not treat it properly.
every time i find a complete word i print it to a file with the line it was found on, the last word in a line wiht nothing after the word shows up as comming from the next line.... i increment my line counter at the very bottom of my loop so it has no link to this... its just an issue with getline i belive.
if i add a space or a ; or a : or any of my special characters after the last letter in the word it works perfectly, its only when there is Nothing after the last letter in the last word on the line i have issues.
2003 Cobra Vert (Redfire) #3938 of 5082 @ 05/27/2003
472rwhp/493rwtq -Modification List
- Dyno Sheet
2012 Mustang 3.7L M6 (Kona Blue)
2011 Ford Edge Sport (Red Metallic)