Solving an exercise from Thinking C++
<p>The exercise says:</p>

<blockquote>
  <p>Create a Text class that contains a string object to hold the text of
  a file. Give it two constructors: a default constructor and a
  constructor that takes a string argument that is the name of the file
  to open. When the second constructor is used, open the file and read
  the contents into the string member object. Add a member function
  contents() to return the string so (for example) it can be printed. In
  main( ), open a file using Text and print the contents.</p>
</blockquote>

<p>This is the class that I wrote:</p>

<pre><code>class Text {
    string fcontent;

    public:
        Text();
        Text(string fname);
        ~Text();

        string contents();
};
</code></pre>

<p>I haven't understood everything of this exercise. It asks to create a function <code>contents()</code>, that returns a string, but it doesn't says what the function has to do...<br />
Neither what the default constructor has to do.<br />
Could someone help me?</p>
