P.S.: Since I'm getting the Dom3 server monitor tool ready for Linux / Mono, too, and there is the same trouble as here: Probably the best way of getting the full path for a file is to use Path.Combine. Example code:
Code:
using System;
using System.IO;
public class Test {
public static void Main(string[] args) {
string s = Path.Combine(Environment.GetEnvironmentVariable("HOME"), "test");
Console.WriteLine(s);
Console.WriteLine(File.Exists(s));
Console.WriteLine(Directory.Exists(s));
}
}
I didn't have any experience with C# so far, but it sure is nice, I must admit.
