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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How read an UNICODE file in VB6 ????

Status
Not open for further replies.

25230

Programmer
Feb 15, 2002
5
FR
I don't arrive to read lines of an UNICODE file in VB6 !!
I try a lot of think, but without succes :

Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.OpenTextFile("C:\unicode.txt", ForReading, TristateFalse)

- with the "TristateFalse" parameter to open the file in UNICODE mode
- with the "ReadLine" or "ReadAll" methods and with the use of "StrConv" function,

By example :

StrConv(a.ReadLine, vbFromUnicode)
StrConv(a.ReadLine, vbFromUnicode)
StrConv(a.ReadLine, vbFromUnicode)
...

or

StrConv(a.ReadAll, vbFromUnicode)


The UNICODE file that I would read in VB6 program result of the following command :
msinof32.exe /report C:\unicode.txt /categories +SystemSummary

Thanks a lot,
Thierry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top