By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,983 Members | 2,082 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,983 IT Pros & Developers. It's quick & easy.

how the HTML file contents read from visual basic

100+
P: 198
Hi
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
Wend
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
Share this question for a faster answer!
Share on Google+

Post your reply

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