Ok, I figured how to use streamwriter by actually creating the object: Sub Page_Load(S as Object, E as EventArgs) dim toPath as string = "C:/Inetpub/wwwroot/minntronix/content/pages/content_includes/" & Request.QueryString("page") & ".ascx" dim myStreamWriter as StreamWriter = New StreamWriter(toPath) myStreamWriter.WriteLine(Session("previewText")) myStreamWriter.Close End Sub Now, how do I use unicode?????? For the love of mercy, somone PLEASE help!!!!!! Casey ----- Original Message ----- > The File.CreateText method doesn't not have a signature (Path, Encoding) > AFAIK: > ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemIOFileClassCreateText T > opic.htm > > If you explicitly create a StreamWriter object, then there is a constructor > that has that signature. > > Cheers > Ken > > : -----Original Message----- > : > : I'm using a simple StreamWriter to over right the contents of a file: > : > : Sub Page_Load(S as Object, E as EventArgs) > : dim myStreamWriter as StreamWriter > : dim onPage as string = Request.QueryString("page") > : myStreamWriter = File.CreateText(MapPath("../pages/content_includes/" & > : onPage & ".ascx"), System.Text.Encoding.UnicodeEncoding ) > : myStreamWriter.WriteLine(Session("previewText")) > : myStreamWriter.Close > : End Sub > : > : I added the ", System.Text.Encoding.UnicodeEncoding " because I was having > : trouble with certain greek charectors being altered when the file was > : re-written. But I now get this error: > : > : BC30390: 'System.Text.Encoding.unicodeEncoding' is not accessible in this > : context because it is 'Private'. > : > : I will confess that all this unicode endcoding is new to me. What must I > : do to ensure the stability of the content?