reading an unicode file

Dejan Lekic dejan.lekic at gmail.com
Thu May 10 23:06:54 PDT 2007


By reading a BOM of the file you should be able to detect which text format to use. More about BOM: http://unicode.org/faq/utf_bom.html#BOM .
So, I would first chech which BOM is it, than use appropriate readLine() or readLineW() InputStream methods to read the file line-by-line, or if you prefer just to read until the eof, than appropriate read() method.


More information about the Digitalmars-d-learn mailing list