Error
StreamWriter SW = new StreamWriter("c:\shasurdata\forblogger\Sample.txt");
Corrected
StreamWriter SW = new StreamWriter("c:\\shasurdata\\forblogger\\Sample.txt");
Or
StreamWriter SW = new StreamWriter(@"c:\shasurdata\forblogger\Sample.txt");
Visual Studio .NET Tips and Tricks, VB.NET Code Samples, C# Code Snippets, ASP.NET Code Samples, .NET Tips and Tricks, C# Tips & Tricks, Visual Studio 2010, .NET Framework Code Samples, VB.NET Tips & Tricks
Error
StreamWriter SW = new StreamWriter("c:\shasurdata\forblogger\Sample.txt");
Corrected
StreamWriter SW = new StreamWriter("c:\\shasurdata\\forblogger\\Sample.txt");
Or
StreamWriter SW = new StreamWriter(@"c:\shasurdata\forblogger\Sample.txt");
You save my time!
ReplyDeleteThanks
Talley
Developer,Raleigh,NC
Thank you! You saved me loads of time!
ReplyDeletetanx a lot dude...:):):)
ReplyDeleteTHX MATE U SAV EMY LIFE............
ReplyDeleteThanks. I had a really odd case where I have to escape the '*' and this allows is since it's an Oracle SQL query and somehow Oracle allows it without a problem
ReplyDeleteyou superb thankzz..
ReplyDeleteReally thanks
ReplyDelete