With StreamWriter RRS feed

  • Question

  • I can't sort ou what is wrong with code in relation to error message "System.IO.StreamWriter.StreamWriter()' is inaccessible due to its protection level."  Can someone help?

    using System;
    using System.IO;

    namespace Ab
       public class Cab
          StringWriter sw = new StringWriter();

          private void UseSW()
               sw.Writeline("please help");





    Any tip would be very much appreciated.   Thanks


    Wednesday, January 25, 2006 12:14 PM

All replies