I am using a relative file path in one of the cs file to get a location to save an image.
Is there any difference in using ../ and ..// for getting the path.
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.
I don’t know if your slashes are actually backslashes, but in c#, you have to escape backslashes.
path’s value is actually ..\file.txt, because the “\” is actually one (escaped) backslash.
However, if it is:
then it is the same. The @ means you want the string as-is, without any escaping, so both “path” variables are the same.