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:
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 controlsCode: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
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?




Reply With Quote