By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,929 Members | 1,284 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,929 IT Pros & Developers. It's quick & easy.

readline and national character problem

P: n/a
readline method and national charset problem
hi how can i copy line from text file which contains polish characters. i
use readline method from StreamReader class but it doesn't copy polish
characters :( what shall i do ??

this is a code how can i change it to works the same way
Dim oFile As System.IO.File
Dim oRead As System.IO.StreamReader
Dim oWrite As System.IO.StreamWriter
Dim LineIn As String
Dim nowo As Boolean = True

Do While MyFile <> ""
If MyFile <> MyName Then
If oFile.Exists(MyPath & "\" & MyName) Then
'(MyPath & "\" & tablica(1)) Then
oRead = oFile.OpenText(MyPath & "\" &
oWrite = oFile.AppendText(MyPath & "\" &
'oFile.Delete(MyPath & "\" & MyFile)

Dim plik As New FileInfo(MyPath & "\" &
If plik.Length <> 0 Then
LineIn = oRead.ReadLine()
End If

While oRead.Peek <> -1 'odczyt i zapis
do pliku test
LineIn = oRead.ReadLine()
End While
nowo = False

Mar 24 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.