472,119 Members | 1,791 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,119 software developers and data experts.

how the HTML file contents read from visual basic

198 100+
can any one help me by providing the method how i read the text from html file.
i did it by this method

Open newstr For Input As #1
While Not EOF(1)
Line Input #1, strtemp
txtfile = txtfile & strtemp
Close #1
If txtfind <> "" Then
If InStr(txtfile, txtfind) <> 0 Then
txtfile.SelStart = InStr(txtfile, txtfind) - 1
txtfile.SelLength = Len(txtfind)

with this code i transfer the whole text from html file into textbox "txtfile"
and then search the particular text using "Instr"function . all it works fine but

when special characters like " ö,ä " comes , these characters change there format in txtfile and not searched by user
please provide some method how i will read html file with out transfering into text box so that these special characters can be searched
Apr 25 '08 #1
0 1117

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

17 posts views Thread by Lloyd Sheen | last post: by
3 posts views Thread by http://www.visual-basic-data-mining.net/forum | last post: by
3 posts views Thread by news | last post: by
1 post views Thread by vbvjain | last post: by
59 posts views Thread by Lennart Björk | last post: by
2 posts views Thread by joshua_jacobsen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.