I want to set the current directory to the solution directory/configuration name. How do I do that? Can I use the global variables somehow?
I am trying to read a file and the current directory changes in the middle of the code. I want to change it back.
If your current directory is changing, you should probably save your working directory at startup in some variable you can access later to set cwd back there. At least this is how I understand your question.
For getting the cwd, this might help.