I’m sorry for this no-brainer question but I’m having difficulties reading the JUCE documentation.
I want to retrieve the working directory and use it for FileIO handling.
I tried the getCurrentWorkingDirectory() and I expected this to return a string containing the path to my compiled exe-file which I would then concatenate with my filename when creating the file; as such:
static const filePath = File::getCurrentWorkingDirectory();
myFile = new File(String(filePath) + T("temp.txt"));
Unfortunately this doesn’t work.
Can someone please tell me how to do this?