Open FileName For Input As # 1 'to Open the text file Input way
While Not EOF (1) 'loop line, enter
The Line Input # 1, TMPSTR 'read and placed in a temporary string
Wend
Close # 1
How do you read don't garbled?
Thank you very much!!!!!
CodePudding user response:
Has very little to do with how to take, the important thing is what kind of character in your control to display, a character set is used for web documents information, browser software will be set according to the circumstance,You can't think of the code, the dynamic set you TextBox FontName properties, if use a wide variety of web documents show character set, you may want to use RichTextBox to block set display character,
CodePudding user response:
Why not use WebBrowser control load HTML?CodePudding user response:
You read will be a problem, whether this gibberish, depending on your HTML file coding format, if it is GBK code, vb6 can display normally, if is utf8, need to download conversion encoding utf8=& gt; GBK function code,