ANSI Textfile

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
 
A

Armin Zingler

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top