while(!RecordFile.eof() )
{
getline(RecordFile, Content, '>');
if (Content == "<MouseCORDS")
{
//Whatever I'm going to do...
Text file:
<MouseCORDS> 65> 94> <KeyboardCommand> 43>
I can get the first line completely fine. However, after 94 has been read (It stops at ">"), it will read WHITESPACE, and then <keyboardcommand, so the following:
if(Content == "<KeyboardCommand")
{
}
will not work, because what's really in content is:
".........................................<KeyboardCommand"
Or something to the like. I can't specify multiple delimmiters in a single getline statement, so some help would be appreciated as to how I would go about doing this.
This post has been edited by Magmatwister: 12 February 2010 - 02:39 PM

New Topic/Question
Reply



MultiQuote





|