[Mono-list] Handling file paths for different operating systems

Marcus mathpup@mylinuxisp.com
Sat, 7 Feb 2004 01:28:47 -0500


I'm not sure that I understand your question. The class Path defines things 
like DirectorySeparatorChar, GetDirectoryName(), GetFileName(), and so forth. 
You might peek around in there and see if anything looks promising.



On Saturday 07 February 2004 2:20 am, Timothy Parez wrote:
> Hi,
>
> I'm wondering, if you have an application which uses a file path for one
> of its setttings,
> for example in the .config file of the application there's an entry:
> <add key="PluginDirectory" value="")
>
> Of course I could have an entry for each different OS, but that's not
> exactly nice design,
> how can I write down a path in a universal way, or make it so that it
> works on all systems