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 add column headers in listview control?
What is the default workspace?
How can you Navigate from the DHTML application to another DHTML application? .
What is the default workspace?
Explain OLE Drag and Drop.
How would you convert a form into document?
Is there a way to break long lines in VB code?
How to control the file?
How would you create your application in DHTML?
What do you know about chaining views.
What is the use of Hyperlink control for DHTML applications?
Is visualvm free?
Can you create a tabletype of recordset in Jet - connected ODBC dbengine?
What are the different procedures associated with the object?
Advantage of ActiveX Dll over Active Exe.