ifstream not reading from new file after close(), clear() and open()
===

I'm trying to read from multiple files using a single ifstream object. I'm using it like so:

    
    ifstream in(file1);
    in >> stuff;
    in.close();
    in.clear(); //apparently not necessary anymore, but included anyway
    in.open(file2);
    in >> otherStuff;  //this reads from file1 immediately after "stuff", 
                       //not from the beginning of file2 

Am I missing some other magical call here?

Thanks