Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Streamreader problem

Status
Not open for further replies.

ecucurella

Programmer
Feb 17, 2003
34
ES
Hi,

I use the streamreader to read one file line by line:

...
fileIn = New System.IO.StreamReader("c:\text.txt", system.Text.Encoding.ASCII )
Do
linia = fileIn.ReadLine
...
Loop Until linia Is Nothing
...


If in my file there is a character like á, é, í, etc
it can`t read it, it don't appear.

How can I solve this problem?
I have tested with:
-system.Text.Encoding.ASCII
-System.Text.Encoding.BigEndianUnicode
-System.Text.Encoding.UTF8

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top