How to get this file path correct in C++?

Started by
12 comments, last by demonkoryu 13 years, 11 months ago
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.
Advertisement
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.
I see...

Thanks for everything! :D

(How do I make this question "resolved"?)
You don't.

This topic is closed to new replies.

Advertisement