how the HTML file contents read from visual basic

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • veer
    New Member
    • Jul 2007
    • 198

    how the HTML file contents read from visual basic

    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.SelStar t = InStr(txtfile, txtfind) - 1
    txtfile.SelLeng th = Len(txtfind)

    with this code i transfer the whole text from html file into textbox "txtfile"
    and then search the particular text using "Instr"func tion . 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
Working...