Motoxrdude
Active Member
I missed the last couple of days and I am playing catch up. Right now I need to make a program that reads a file, assigns a couple variables and the display the variables.
So I need it to read two words (space in between) from the file and then stop at an ",". How in the world do I get it to skip a white space but not a certain character like ","? If I just do "inFile >> stringVar" it will stop at the first white space, but if i do "getline(inFile, stringVar)" it will read the entire line.
So I need it to read two words (space in between) from the file and then stop at an ",". How in the world do I get it to skip a white space but not a certain character like ","? If I just do "inFile >> stringVar" it will stop at the first white space, but if i do "getline(inFile, stringVar)" it will read the entire line.