Weird characters on the output of an ifstream
<pre><code>#include &lt;iostream&gt;
#include &lt;string&gt;
#include &lt;fstream&gt;
#include &lt;cstring&gt;

using namespace std;

int main(){
  char a;

  cout &lt;&lt; "give me the filename: ";
  cin &gt;&gt; filename;

  ifstream caroll;
  caroll.open(filename.c_str());

  while (a=caroll.get() &amp;&amp; !caroll.eof()){
    cout &lt;&lt; a &lt;&lt; "    ";
  }

  caroll.close();
}
</code></pre>

<p>I am getting output full of weird chars. They are like little squares filled with 2 0's and 2 1's.</p>
