I am working on a Qt project which maps vowels onto a chart that have the *.sym format.
My goal is to load an initial IPA chart like this.
I have the *.sym
files and I can load them after my application starts, but I'm not really sure where my executable is executing.
I have a directory format (after building) like this
Project
|_ Source
|_ Build
|_ Source
|_ Charts
|_ load_at_start.sym
|_ Project.app
|_ Contents
|_ MacOS
|_ Project (executable)
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...
FILE *stream = fopen("./../../../charts/load_at_start.sym", "r");
but it doesn't work. Can anyone help me?