[Lazarus] Directory separator character / or \ for file path differences between Linux, Mac and Windows, etc
Peter E Williams
pewslinuxvault at gmail.com
Tue Dec 28 21:30:19 CET 2010
This is really 4 questions:
One: Since Windows users the '\' (backslash) character and Linux uses the
'/' (foreslash) character in file paths, have I got those the right way
Two: What do Macs use for directory path separator character?
Three: Is the a cross-platform function (or procedure) for correcting the
file path separator character? I believe that there is one.
e.g. c:\Program Files\Fred's software\data (folder) >>> c:/Program
Files/Fred's software/data (folder)
Yes, I am well aware the c:\Program Files\ does usually exist on Linux
systems. Actually, if it does exist it will be:
~/Home/.wine/drive_c/ (folder) with Wine installed.
So, it would become ~/Home/.wine/drive_c/Program Files/Fred's
Four: Is the a compiler directive (cross-platform) or other way of detecting
the OS of the user's system?
Fond Regards, Peter Eric WILLIAMS
--- Hobart, Tasmania, Australia
--- Phone: +61 (03) 6236-9675
My free websites are: http://pewink.info (&)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Lazarus