title: fstream reading misstake
body: <p>guys im desperate and i really dont know what i am doing wrong :(
  I just wanna get my program to simply add "hello" in the file read it and print it;
  The writing works well but for some reasone he is not reading it out of the file again (at method list...</p>
  
  <pre><code>    #include "user.h"
  #include &lt;string&gt;
  
  using namespace std;
  
  user::user(string aaa)
  {
      name=aaa;
      log.open(name.c_str(), ios::in|ios::out | ios::trunc);
      log&lt;&lt;flush;
  
  }
  
  void user::insert(string to, string message)
  {
      log.write("hallo",5);
  }
  
  void user::list(){
     string mylist;
  //    getline("nicht hallo",list);
     getline(log,mylist);
      cout&lt;&lt;mylist;
  }
  
  user::~user()
  {
      log.close();//dtor
  }
  </code></pre>