I have been looking at many tutorials but a lot of it doesn't make sense to me. I am not that new to cplusplus, but when it comes to managing directories it becomes rather overwhelming.
What I have been trying to do is get the current path that the executable is in.
D:\Users\Me\Documents\Project\MGen\MGen.exe
Then I want to create a folder that is back one folder from the executable if that folder does not exist.
D:\Users\Me\Documents\Project\NewFolder
Finally, I want to insert a text file into that new folder
D:\Users\Me\Documents\Project\NewFolder\new.txt
I have been scratching my head all night and day but haven't figured out anything. I have been seeing a lot of this
LPCWSTR lpFileName
DWORD nBufferLength
LPWSTR lpBuffer,
LPWSTR *lpFilePart
But not of these things mean anything to me. I don't know what they want, what they mean, what they do. What inputs do they take? I see them in almost every set of parameters that deal with directories.