title: Opening a file in Mac OS X
body: <p>I am trying to open a text file with C++ in Mac OS X but I always get a Bus error.</p>
  
  <p>I do not care where to put the file. I just need to read it. Am I writing its address wrong? or that Bus Error has another reason?</p>
  
  <pre><code>FILE *dic;
  dic = fopen("DICT","rb");
  
  dic = fopen("./DICT","rb");
  
  dic = fopen("~/DICT","rb");
  
  dic = fopen("~//DICT","rb");
  </code></pre>