Ok, I admit, I'm a lifeless geek that is absolutely addicted to programming. Unfortunantly, that doesnt mean I'm good at it :P.
So, I have a bit of a conundrum. I want to pick up a file in a subdirectory of where my .exe is being run from. I know I can do this:
Code:
ofstream hi("file.extension", extra stuff);
But my file is not located in the same directory as my exe, its in a sub directory. So, is their some way to throw the current path into a buffer?
Code:
string h;
h=CurrentPath();
And what library does/would it use?