Streamwriter adding content in top of file

  • Thread starter Thread starter ReidarT
  • Start date Start date
R

ReidarT

I am using the streamwriter to add contents to a textfile.
With streamreader
1. How do I get the norwegian characters æøå to work?
I have tried
Dim sr As New StreamReader("C:\SendepostKaspo\LoggFil.txt",
System.Text.Encoding.UTF8)

but it doesn't work.

2. with streamwriter, How do I add a line in top of the file?



regards

reidarT
 

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

Back
Top