I'm writing the following code to read in a file from the filepath given (Using VS2010 & 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 is complaining about the following line:
string path = "C:\Windows\Temp\fmfozdom.5hn.rdl";
It gives the message: Unrecognised escape sequence at \W and \T
What am I doing incorrectly?