I am writing the following code to read in a file from the specified file (using VS2010 and C #):
static void Main(string[] args) { string temp; string path = "C:\Windows\Temp\fmfozdom.5hn.rdl"; using(FileStream stream = new FileStream(path, FileMode.Open)) { StreamReader r = new StreamReader(stream); temp = r.ReadToEnd(); } Console.WriteLine(temp); }
The compiler complains about the following line:
string path = "C:\Windows\Temp\fmfozdom.5hn.rdl";
It produces a message: Unknown escape sequence in \ W and \ T
What am I doing wrong?
source share