Is there some built-in constant for the path delimiter (i.e. \ vs /)
The delimiting character is most commonly the slash ("/"), the backslash character ("\"), or colon (":"), though some operating systems may use a different delimiter.
The path separator is a character commonly used by the operating system to separate individual paths in a list of paths.
Microsoft chose the backslash character ("\") as a directory separator, which looks similar to the slash character, though more modern version of Windows are slash-agnostic, allowing mixage of both types of slashes in a path.
Provides a platform-specific character used to separate directory levels in a path string that reflects a hierarchical file system organization.
System.IO.Path has two readonly fields for this purpose:
Then there are two additional fields for the volume separator and path separator:
System.IO.Path has these sort of information.
http://msdn.microsoft.com/en-us/library/system.io.path.directoryseparatorchar.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With