Hello everybody,

Currently I am able to load an ANSI text file, and loop through all the lines, reading each one. I do this like ths:

Code:
lngFileNum = FreeFile()
Open strpath For Input As #lngFileNum
Do While Seek(lngFileNum) <= LOF(lngFileNum)
    Line Input #lngFileNum, strResult
    'Do Something with strResult
Loop
Close 'lngFileNum
Now when I do the same with a unicode file, I get garbage characters even though the charset, and correct font is being used for the controls

When I add the unicode strings to a ressource file and load it, everything displays correctly good. However if I load a text file into memory I get garbage data.

Can enyone tell me how to cycle though (line by line) the unicode text file?