When we're using ofstreams, suppose we can create a file random.txt that would be in the same folder as the executable file. Say the .exe file is in the folder \Debug, we would find random.txt there too.
Now the path isn't absolute, even when you copy the .exe to say \Folder, we would find the text file there.
Question is: How can we know the "absolute" file path?