title: Parsing a textfile (with HTML in it) with C++
body: <p>I've been able to get some raw data in the form of a html webpage, which I have in turn put into an ordinary text file.  I'm currently trying to use a C++ program to parse this file, but for some reason it's giving me weird output in that it's putting @s, symbols, and ^Ms in between every single letter.  I'm unsure as to whether this is because I'm trying to parse an HTML file or if it's because my code is wrong, but I've tried my code on smaller HTML files and it works fine.  The file I want it to work on is just 145kB</p>
  
  <p>Here is my code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;fstream&gt; 
  #include &lt;string&gt;
  
  using namespace std;
  
  int main(int argc, char** argv)
  {
    ifstream inFile;
    inFile.open(argv[1]);
    string str;
  
    while(getline(inFile, str))
    {
      cout &lt;&lt; str &lt;&lt; endl;
    }
  
  }
  </code></pre>
  
  <p>If anyone could give me a clue as to why this isn't working, I'd be very grateful. </p>