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 different between Microsoft ODBC Driver and Oracle OBDC Driver?
What is the use of parameters collection?
What is a Component?
___,_____ and ____ container objects.
I belive VB6 is a powerful and matured tool that any other front end tool, why is it outdated? is it because of lack of awareness or because of difficult to use?
How can you check whether a record is valid record or Invalid record using ADO control or Object?
Which ADO object is used to perform commit / rollback ? Is it command or connection or recordset I am not sure of the options given. So please let me know the answer if it is something else.
Using which type we can access file line by line?
What is the difference between c++ and visual basic?
Can we display only integers / numbers through the message box? Is there any constraint to do so?
Can Redim be used to declare a new array ?
which arguments will be used to run a executable program in shell function ?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)