escape charector in file path sroed in variable c#

When a store a file path in a variable, like "c:\pic\"
the variable stores "c:\\pic\\.

ok. seems like a poor choice of escape charector to me.

how do i get rid of the extra backslash when i go to use the variable?
LVL 1
dgdfgssfdgsAsked:
Who is Participating?
 
Guy Hengel [angelIII / a3]Connect With a Mentor Billing EngineerCommented:
>the variable stores "c:\\pic\\.
no, it's only "display" like that. the real value is "c:\pic\"

>seems like a poor choice of escape charector to me.
 has been done some years ago...
0
 
dgdfgssfdgsAuthor Commented:
duh. thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.