title: Is there a one-liner to read in a file to a string in C++?
body: <p>I need a quick easy way to get a string from a file in standard C++.  I can write my own, but just want to know if there is already a standard way, in C++.</p>
  
  <p>Equivalent of this if you know Cocoa:</p>
  
  <pre><code>NSString *string = [NSString stringWithContentsOfFile:file];
  </code></pre>