title: C++ stringstreams skipping a character
body: <p>I have a file which the first line reads ">FileName.txt". My goal is to read this line, and save "FileName.txt" to a variable called name. So I have:</p>
  
  <pre><code>ifstream file;
  
  /* File opening stuff */
  
  string line, name;
  
  getline(file,line);
  
  stringstream converter(line);
  
  converter &gt;&gt; name;
  </code></pre>
  
  <p>This accomplishes saving ">FileName.txt" to the variable <code>name</code>, but I need to remove the '>' character. I am not sure if I should do that after this point, or if there is a way to skip over it entirely using the <code>stringstream</code>. </p>