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
What is datagrid in vb net?
Types of LockEdits in DAO?
What is the difference between c++ and visual basic?
what are the Differenct Types of Procedures in VB?
How would you convert a form into document?
what are the Types of DBCombo boxes?
i want to retrive data from one spead sheet to another UI (workbook). control will search cell by cell for each row and load the data in another workbook(UI).
What are the types of line styles available in Treeview Control?
what is the Difference between Recordset and Querydef?
Scope of API's can be of types, what are they?
Which type of object requires this object?
How many objects resides in ADO ?
Whether HTML supports multimedia: and document links?
What is the use of Hyperlink control for DHTML applications?
what are the Types of Resultsets?