J
Jennica Humphrey
Let's say I have something like this:
ifstream inFile( buffer, ios::in );
while ( inFile >> name >> value ) { // read lines
cout << "Name: " << name << " Value: " << value;
}
The file reads one word at a time, which appears to be delineated by
whitespace or a newline. How do I change the delineator, for example,
using '=' instead of ' '?
ifstream inFile( buffer, ios::in );
while ( inFile >> name >> value ) { // read lines
cout << "Name: " << name << " Value: " << value;
}
The file reads one word at a time, which appears to be delineated by
whitespace or a newline. How do I change the delineator, for example,
using '=' instead of ' '?