title: Super basic C++ Error
body: <p>I have this code...</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;wiringPi.h&gt;
  
  #include &lt;fstream&gt;
  #include &lt;iostream&gt;
  
  int main ()
  {
  
    wiringPiSetup ();
  
    char instructions[100];
  
    ifstream b_file ( "instructions.txt" );
    b_file&gt;&gt; instructions;
    cout&lt;&lt; instructions &lt;&lt;"\n";
  
  }
  </code></pre>
  
  <p>As far as I understand it, this should compile to a program that outputs the contents of "instructions.txt" in the console...however, it won't even compile with g++ in Ubunutu...what's wrong?</p>
  
  <p>Error messages tell:</p>
  
  <pre><code>"if_stream" wasn't declared in this scope
  "b_ file" wasn't declared in this scope
  "cout" wasn't declared in this scope.
  </code></pre>