I have not yet found a definitive answer about this. I am trying to access files in subfolders from my .EXE. When I asked before, people tell me to use an absolute location, that is, "c: / game / info /" if I wanted to access anything in / info /
But for me or someone it is completely unreasonable to assume that someone is going to use their program from the same directory. What if the user has only a D-disk? That kind of thing.
So my question is: how can I access the file in a subdirectory from my executable without relying on the whole path?
source
share