Hello,
I'm reading a file from a network drive but I'm having a problem in this line.
The reason that I don't specify the drive is because I will be reading a file from a network drive which sometimes could be map to different drive letters.Code:StreamReader fileRead = new StreamReader("\\E-Storage\\Billing\\text.txt")
My question is how should I write the path then
I tried both and program did not work however when I specified a letter such as c:\text.txt it works fine so could you correct me if I'm wrong.Code:("\\E-Storage\\Billing\\text.txt") or (@"\E-Storage\Billing\text.txt")
Thank you