Hi,
The problem is on this line:
string fileName = @"C:\\Temp\\abc.txt";
Try to replace it with this:
string fileName = @"C:\Temp\abc.txt";
In a normal string you would need to escape
\
into
\\
. But you're using
@
before the file name, so you don't need to do that.