title: Read a file in CodeIgniter Controller
body: <p>I am trying to read a file inside CodeIgniter framework, it means in controller, My code is given below, But this doesn't work, I am a bit newbie here, can you guys guide me how to read file inside the controller?</p>
  
  <pre><code>$fp = fopen("id_rsa.pem", "r");
  $priv_key = fread($fp, 8192);
  fclose($fp);
  </code></pre>