Is there a C# equivalent to File.separator in Java
c#, java
Solution
I think `Path.DirectorySeparatorChar` is what you need. You can find it in the `System.IO` namespace.
Problem
How does C# cope with file separators? Is it always assumed the file separator is "\" (or "\\" and does this have to be escaped like this?