Path of file relative to program
When loading a file, a path to it is specified like this:
How do I get it so that the file being loaded is relative to the path of the program using it, rather than an absolute path? That is, if the program was at:
C:\\My Documents\\My programs\\Test program.exe
How would I load a file from this:
C:\\My Documents\\My programs\\Images\\example.bmp
without having to specify the "C:\\My Documents\\My programs\\" part, or, in other words, relative to the program's location?