title: An absolute path in fopen()
body: <p>I am trying to make my c program more dynamic. It should opens a file with fopen(). Apparently, fopen does not read absolute paths. For example It can't read this path:</p>
  
  <pre><code>fopen("/Documents/projects/cs50_radio/broadcast/source/deadinside.mp3", "r")
  </code></pre>
  
  <blockquote>
    <p>returns NULL</p>
  </blockquote>
  
  <p>;however,</p>
  
  <pre><code>fopen("deadinside.mp3", "r");
  </code></pre>
  
  <blockquote>
    <p>returns the expected pointer</p>
  </blockquote>
  
  <p>I was wondering if there is a possible way to read such a path which might be independent from the current working directory in other cases ?  </p>