Answers
Jun 20, 2007 - 12:40 AM
I was trying with: StreamWriter file = File.CreateText(path + fileName);
but it doesn't give me any options to define the encoding...
but it doesn't give me any options to define the encoding...
Jun 20, 2007 - 08:48 AM
Jun 20, 2007 - 11:37 AM
Thanks, nidhi, but that's the class to get the correct encoding. What I need it a method to create a text file with that encoding.
Jun 21, 2007 - 01:41 PM
I found out that with this class, I can create the textfile as I want:
StreamWriter file = new StreamWriter(path + fileName, false, System.Text.Encoding.UTF7);
StreamWriter file = new StreamWriter(path + fileName, false, System.Text.Encoding.UTF7);
Jul 24, 2007 - 09:42 AM
C#
TextWriter myTextWriter = new StreamWriter(Filename,false,Encoding.UTF7);
VB.NET
Dim myTextWriter As TextWriter = New StreamWriter(Filename, false, Encoding.UTF7)
TextWriter myTextWriter = new StreamWriter(Filename,false,Encoding.UTF7);
VB.NET
Dim myTextWriter As TextWriter = New StreamWriter(Filename, false, Encoding.UTF7)
Add New Comment