asp.net - Difference between ../ and ..// in a file path -


I am using a relative file path in the CS file to get the space to save an image .

There is a difference in the use of ../and ..// to get the path.

I do not know whether your slash actually has backslash, but in C # you have to avoid backslash .

  var path = ".. \\ file.txt";  

The value of the path is actually .. \ file.txt, because "\" is actually a (saved) backslash.

However, if it is:

  var path = "" ... .. file.txt ";  

then This is the same. @ Means that you want the string without any escape, so both "path" variables are the same.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -