[Mono-list] directory path separator

Kevin White Kevin White <jedirunner@gmail.com>
Thu, 16 Sep 2004 07:50:56 -0600


In java there is the notion of using a system variable to tell you
what the platform-specific folder separator is.  Is the same true for
.Net?  I've only done .Net on windows and haven't cared until now.

I'd like my code to be portable between windows and linux using .Net
and mono.    I take one of the "special" folders from
Environment.GetFolder(), and append some directory structure to that
to do some work.  How do I know what folder separator to use?

Thanks very much,

Kevin
(Still trying to orient myself -- and may be for a while -- to
cross-platform .Net)