When not using C++0X, stream.clear() should be called to reuse stream

When not using C++0X, stream.clear() should be called to reuse stream. Otherwise all will be messed up...