Relative paths with Xcode and C++

Hello,

I am a beginner, I am learning C++ and I use Xcode. I started to work with files but when I want to use ofstream with a relative path, it doesn't create the file in the folder where I can find main.cpp, and I can't find the right folder. I'd like to know where I can find the file and how I can create it in main.cpp's folder using a relative path.

Thanks for your help

Relative paths with Xcode and C++
 
 
Q