in the directory containing my exe I have a folder called "saves". I want to display the files this directory contains.
I used the code found here: Listing directory contents using C and Windows
Now the tricky part.
if I use .\\saves\\
as my directory it tells me that the path could not be found.
However if I use ..\\release\\saves\\
it works fine. But that's stupid. I don't want to go to the parent folder and than go back. Especially regarding that I don't know what name the user gives to the directory containing the exe (in my case it's "release" but who knows what the user does :-D).
I read through this: http://msdn.microsoft.com/en-us/library/aa365247(v=vs.85).aspx#fully_qualified_vs._relative_paths but it didn't help very much.
I also tried saves\\
or .\saves\\
but it doesn't work either.
I hope somebody can tell me how to fix this.