none
StreamWriter Usage in .Net for Metro RRS feed

  • Question

  • using( var sw = new StreamWriter( _pathToLogFile, true ) )
    sw.Write( string.Format( "{0} {1}\r\n", System.DateTime.Now, data ) );

    It shows an error of 

    The best overloaded method match for 'System.IO.StreamWriter.StreamWriter(System.IO.Stream, System.Text.Encoding)' has some invalid arguments

          How to solve this>?
    Saturday, January 19, 2013 7:30 AM

Answers