I have a string like
string info = "C:\tempFile"
but when I am displaying it's getting displayed like this C:empFile
. I think its tab delimiter (\t) problem, but I don't know how to fix it.
It's just because \
is a special character. You need to escape it !
Two ways to solve it :
string info = "C:\\tempFile.txt" ; // Means actually C:\tempFile.txt
or
string info = @"C:\tempFile.txt" ; // @ Means don't take care of every \ in this sequence
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With