View Single Post
  #2 (permalink)  
Old February 21st, 2005, 04:14 PM
mehdi62b mehdi62b is offline
Friend of Wrox
 
Join Date: Jul 2004
Location: Tehran, , Iran.
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default

use StreamReader instead,
Code:
StreamReader reader = new StreamReader("source.txt", Encoding);
StreamWriter writer = new StreamWriter("dest.txt",Boolean, Encoding);
give one of the unicode encodings to the constructor.(UTF8 is the default)

_____________
Mehdi.
software student.
Reply With Quote