Thank you, Aardvajk.
I have found my answer in the link provided from you.
The syntax for it is "..\\<Folder>\\<Folder>\\<etc.>"
Needs two periods, then two backslashes for every backslash you see in the absolute path of a file for it to be a correct form of the relative path.
Link.
How to get this file path correct in C++?
Quote:Original post by tom_mai78101
Thank you, Aardvajk.
I have found my answer in the link provided from you.
The syntax for it is "..\\<Folder>\\<Folder>\\<etc.>"
Needs two periods, then two backslashes for every backslash you see in the absolute path of a file for it to be a correct form of the relative path.
Link.
Though you gain nothing by using backslashes in file-paths in C++: clicky.
Many (relative) filepaths are even portable amongst unix and windows if you use forward slashes.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement