Jump to content

building a filepath


Rick
 Share

Recommended Posts

So we have GetAppDataPath() to return a path. Then we concat a filename to that path to pass into one of the open/read whatever functions. The question is what slash should we use that'll work on all platforms when doing that?

 

completePath = GetAppDataPath().."/"..filename --??

 

If it's different on each platform a function to handle this would be nice. In .NET they have Path.Combine(path, filename).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...