Hello Irfan,
The "\" is the symbol for the escape sequence. If you can't have the single
"\" in your string.
Thing about the other way of comparing your strings, like comparing arrays
or smth else.
BTW, you can use Path.GetDirectoryName methods to get the stucture of you
path with the DirectorySeparatorChar symbol
which can help you compare your data
Ihi,
II have a fileName stored as a string as shown:
IString fn = @"C:\drawing\testdrawings\test;
Iwhich gives fn = "C:\\drawing\\testdrawings\\test; however i dont
Iwant '\' to get converted to '\\'
I>
IThe reason i need to remove one of the '\' is because, i have a
IdataTable
Iwhere I search for the files using
Ifn as a searach criteria. Since the two strings arent equal
Itherfore it
Idoesnt retireve any data.
ICan someone help me with this problem.
I>
ITIA
IIrfan
---
WBR,
Michael Nemtsev [C# MVP] :: blog:
http://spaces.live.com/laflour
"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche