reading lines from a file by searching a word(instr) and
copying to other textfile,but its only copying only one
line but there are some other lines match criteria but not
copying to the files
Answer Posted / senthilg
givenstring=f1.Readall
Do
If InStr(st_pos, givenstring, "<indexTerm>") <> 0 Then
st_pos = InStr(st_pos, givenstring, ""<indexTerm>")
close_pos = InStr(st_pos, givenstring, "</indexTerm>")
find_String = Mid(givenstring, st_pos, (close_pos -
st_pos) + Len("</indexTerm>"))
st_pos=close_pos +1
End If
Loop While InStr(st_pos, givenstring, "<indexTerm>") <> 0
'Start String =<indexTerm>
'End String =</indexTerm>
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How would you run your ActiveX Document Dll?
___,_____ and ____ container objects.
Whether HTML supports multimedia: and document links?
____ property of menu cannot be set at run time.
What do you mean by Databound Controls Explain?
What is the need of tabindex property is label control?
What is meant by building a recordset.
___,___ arguments will be used to run a executable program in shell function
What is FireHouse Cursors?
What is snapshot in vb?
Explain the types of Views in Listview Control?
Explain about declaring variables in Visual basic?
Is visualvm free?
What is the difference between change event in normal combobox and dbcombobox?
Why do I get "object not an array" when I try reference the fields of a global object variable which I have set to a table?