ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  Visual Basic
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
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
 Question Submitted By :: Ram Potla
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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
# 1
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 ?    0 Yes 0 No
Senthilg
 

 
 
 
Other Visual Basic Interview Questions
 
  Question Asked @ Answers
 
what is the Property used to count number of items in a combobox?  1
what are Instancing for classes provided by ActiveX component like prive, publicnotcreatable,SingleUse, GlobalSinleUse,MultiUse. HCL1
Binary Access-method is used to access file in which manner?  1
what are the Control Categories?  1
what is the difference between procedures,attributes and functions? Patni1
what you know about databases? Satyam2
What do you mean by ADO? TCS3
What do you mean by ADO?  1
What is the tool used to configure the port range and protocols for DCOM communications? IBM1
Wat is Apartment Model?  3
Difference between listbox and combo box. HCL3
Write the correct order of execution of following form?s events: initialization, Load, Activate, Refresh , Paint  2
What is the difference between Single and Double in VB?  1
How can we call Stored procedure of Back End in RDO and ADO ?  1
What type of multi-threading does VB6 implement?  2
Which controls can not be placed in MDI ?  1
How do you do multithreading application in VB  1
What is pivot table and how to create a pivot table  1
What is the maximum no. of forms can include in one project (vb project)? Satyam3
What is the difference between COM and DCOM? Microsoft2
 
For more Visual Basic Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com