Ok, I'm a little new to C#, well new enough not to know this. I am trying to include a Multi-Variable Path in a StreamWrite. Here's an example of what I'm talking about:
The "Variable(As String)" is a Variable I'm using as a string, it's not accualy like that in my code, I'm just saying it's not an int, double, or something else.
Everytime I run this I get "Illegal characters in path.".
I think this is because of the
@"\"
in the line. This is necesary because I'm am looking at a location that is defined by the user that has two depths of unknown location (but is defined by the user), which would be
Variable1(1st step) + @"\" + Variable2(2nd step)
.
So, I need to know how to add
@"\"
without getting this error, "Illegal characters in path.".
Question
PVVnT(0)L
Ok, I'm a little new to C#, well new enough not to know this. I am trying to include a Multi-Variable Path in a StreamWrite. Here's an example of what I'm talking about:
The "Variable(As String)" is a Variable I'm using as a string, it's not accualy like that in my code, I'm just saying it's not an int, double, or something else.
Everytime I run this I get "Illegal characters in path.".
I think this is because of the
in the line. This is necesary because I'm am looking at a location that is defined by the user that has two depths of unknown location (but is defined by the user), which would be
.
So, I need to know how to add
without getting this error, "Illegal characters in path.".
Thanks abunch,
Chris
Link to comment
Share on other sites
7 answers to this question
Recommended Posts