title: fopen with a .app file
body: <p>I am working on a Qt project which maps vowels onto a chart that have the *.sym format.</p>
  
  <p>My goal is to load an initial IPA chart like <a href="http://home.cc.umanitoba.ca/~krussll/138/sec5/vow-ipa.gif" rel="nofollow">this</a>.</p>
  
  <p>I have the <code>*.sym</code> files and I can load them after my application starts, but I'm not really sure where my executable is executing.</p>
  
  <p>I have a directory format (after building) like this </p>
  
  <pre><code>Project
  |_ Source
  |_ Build
    |_ Source
      |_ Charts
        |_ load_at_start.sym
      |_ Project.app
        |_ Contents
          |_ MacOS
            |_ Project (executable)
  </code></pre>
  
  <p>This makes using an fopen call quite difficult. I assumed that fopen would consider the current working directory as the place where the executable rested, so I tried something like this...</p>
  
  <pre><code>    FILE *stream = fopen("./../../../charts/load_at_start.sym", "r");
  </code></pre>
  
  <p>but it doesn't work. Can anyone help me?</p>