ANSI Textfile

  • Thread starter Thread starter Arne
  • Start date Start date
A

Arne

Hi,

I would like to save a textfile in exactly the same format, as if I use
Notepad and choose the encoding style to ANSI.

How can I accomplish this in vb.net (I'm retrieving the input via my Sql
server)

I've already tried several differenct encoding properties on my
streamwriter, but no luck so far

I'm placed in Denmark where we use some special characters :-(


Arne
 
Arne said:
I would like to save a textfile in exactly the same format, as if I
use Notepad and choose the encoding style to ANSI.

How can I accomplish this in vb.net (I'm retrieving the input via my
Sql server)

I've already tried several differenct encoding properties on my
streamwriter, but no luck so far

I'm placed in Denmark where we use some special characters :-(


system.text.encoding.default should do it:

dim fs as new filestream("filename",...)
dim sw as new streamwriter(fs, system.text.encoding.default)


--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
 
Back
Top