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
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / pradeep kumar
Read each line in a loop, campare with required string with
instr and concatenat the whole line
Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between queryunload and unload in form?
What is visual basic used for?
What is the size of the variant data type?
Difference between DDE and OLE.
How do I call help files from a VB program?
how to use unicode data in vb6 regarding to telugu language, my output is in only telugu language
What is the need of z-order method?
How can Visual Basic be used for server-side scripting?
Clear property is available in ____,___ control.
What do you mean by Databound Controls? Explain.
What are the uses of List View Control?
What is Static Variable?