/// ***** Private Variables *****
char* configDir = "configs/";
+char* testFile = "test.cfg";
/// ***** Public Methods *****
char fileName[64];
strcpy(fileName, configDir);
- strcat(fileName, "test.cfg");
+ strcat(fileName, testFile);
ifstream file(fileName);
char_pos--; // decrement to stay on this char
break;
case 2:
- if(c_str[char_pos] == '=')
- state++;
-
if(c_str[char_pos] != ' '
- && c_str[char_pos] != '\t')
+ && c_str[char_pos] != '\t'
+ && c_str[char_pos] != '=')
{
return false;
}
+
+ if(c_str[char_pos] == '=')
+ {
+ state++;
+ }
break;
case 3:
if(c_str[char_pos] != ' '