title: Problems with fopen function on Mac
body: <p>I'm making a simple application on Mac (OSX Mavericks, compiling with clang).
  The problem is that when I try to open a file using the relative path, it doesn't work. It works if I use the absolute path.</p>
  
  <p>For example, if I try : <code>fp = fopen("file.txt", "r");</code></p>
  
  <p>It returns <code>NULL</code>.</p>
  
  <p>It only works if I use: <code>fp = fopen(" User/UserName/Project_folder/file.txt", "r");</code>
  (project folder is the folder that I'm compiling in, and it has my file.txt)</p>
  
  <p>The file is in the exactly same directory.</p>
  
  <p>How I can solve this?</p>
  
  <p>Also the same code has worked well some time ago, and now this and other code that uses the <code>fopen</code> show the same problem.</p>