What’s the .net namespace constant thingy for the forward slash “/”
So instead of:
somePath + "/" + someFile
I can do:
somePath + .net.namespace.forwardslash + someFile
Not really much difference but maybe neater?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
System.IO.Path.DirectorySeparatorChar is what you want i think.
BTW, a saner way to do it is to use System.IO.Path.Combine(somePath,someFile).