Rick Posted November 25, 2013 Posted November 25, 2013 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). Quote
Josh Posted November 25, 2013 Posted November 25, 2013 "\" is the official/correct one for Windows. "/" is for every other OS. But they both work everywhere ni Leadwerks. Quote My job is to make tools you love, with the features you want, and performance you can't live without.
Recommended Posts
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.