|
-
Jan 18th, 2004, 01:15 AM
#1
Thread Starter
Addicted Member
How to save text file (.txt) in Unicode
Hi,
How to save text file (.txt) in Unicode
please send me small example
thanking you in advance
Have a nice day
-
Jan 18th, 2004, 01:22 AM
#2
hmm have you tried the IO.StreamWriter class? doesnt that work with Unicode????
Just try something like this and see if it works:
' make sure you import System.IO first
Dim sw as streamwriter = file.createText(filePath)
if not, try this, I've never done it though, I just wrote the code, I guess it will work hehe:
VB Code:
Dim fs As New FileStream("C:\asd.txt", FileMode.CreateNew)
Dim sw As New StreamWriter(fs, System.Text.Encoding.Unicode)
'sw.WriteLine
fs.Close()
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Jan 18th, 2004, 01:58 AM
#3
Thread Starter
Addicted Member
How to save text file (.txt) in Unicode
Hi,
The first one work Ok
thank you
Have a nice day
-
Jan 18th, 2004, 02:12 AM
#4
Re: How to save text file (.txt) in Unicode
Originally posted by yulyos
Hi,
The first one work Ok
thank you
Have a nice day
aha cool make sure you close the stream though: sw.close( )when you are done
you're welcome and have a nice day
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|