I'm trying to read from a .dat file using the following code:
ifstream input_file; 
double x;
while (input_file >> x) {...}
I don't understand how this actually works though - input_file >> x seems like it's using the right bit-shift operator.  In what way does that actually read the file?
 
    