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
 
Back
Top