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       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
hai there..this is chandu..i have a txt file which 
containing 1000 lines but at a time i want to retrieve 50 
lines..after 50 lines i required to retrieve 51-100..like 
that i want...so could anybody help me in this...thanks in 
Advance..
 Question Submitted By :: Chandu
I also faced this Question!!     Rank Answer Posted By  
 
  Re: hai there..this is chandu..i have a txt file which containing 1000 lines but at a time i want to retrieve 50 lines..after 50 lines i required to retrieve 51-100..like that i want...so could anybody help me in this...thanks in Advance..
Answer
# 1
1st of all the txt file data import into the datatable 
using filesystemobject.

After completion of import the data how many rows u want u 
can retrive using for loop.


you have any quarries regarding the same plz contact me or 
mail me
gi_raju@hotmail.com
9823257761
 
Is This Answer Correct ?    1 Yes 0 No
King
 
  Re: hai there..this is chandu..i have a txt file which containing 1000 lines but at a time i want to retrieve 50 lines..after 50 lines i required to retrieve 51-100..like that i want...so could anybody help me in this...thanks in Advance..
Answer
# 2
can u give me code
 
Is This Answer Correct ?    0 Yes 1 No
Shavali
 
 
 
  Re: hai there..this is chandu..i have a txt file which containing 1000 lines but at a time i want to retrieve 50 lines..after 50 lines i required to retrieve 51-100..like that i want...so could anybody help me in this...thanks in Advance..
Answer
# 3
Hi, check the Below function,

Public Function Func_ReadFromNoetpad
(str_filePath,int_frmLine,int_toLine)

Set fso = CreateObject("Scripting.FileSystemObject")
Set Notepad = fso.OpenTextFile(str_filePath,1)

int_Value = 0

Do While Notepad.AtEndOfStream <> True
      getLine  = Notepad.ReadLine
     int_value = int_value+1

   If int_Value => int_frmLine and  int_Value <= 
int_toLine  Then
	   msgbox  getLine
   End If
   
   Loop

Set Notepad = Nothing

End Function


      Here "str_filePath" is location of the text file in 
ur local machine, "int_frmLine" is for from which line u 
want to get the data and "int_toLine" is for to which line 
u want to get the data.

   for example If u want to get the data from 20 to 30

Func_ReadFromNoetpad "C:\Documents and 
Settings\sdevarapalli\Desktop\sample.txt",20,30

Note: Here i used msgbox to display the data, becoz i don't 
the exact scenario what u want. If u send me what u want to 
do with that i can update this function.

If any queries or concerns please mail at :

nanda.dreddy@gmail.com
 
Is This Answer Correct ?    1 Yes 1 No
Nanda.d Reddy
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
How to connect to data base?  2
Do we have to Enable Smart Identification while running Or will it automatically be enabled ?  2
How can we parameterize our test, values in flat file. Ex:- Values in notepad, with that values i want to parameterize the test. Ordain-Solutions2
hi i have one issue while selecting weblist i want show one particalur item in weblist .ex one weblist they are monday to sunday i want show the reporter like thurday in particular weblist can you help me about this thanks balaji  5
how u will describe testing activities?  1
What is chaild object method? When we will go for chaild object method? How to use chaild object method?  2
Which function is used to accesses the Properties from Repository Pls anybody can give the answer.. Thanks in advance... Navis2
What is the Limitations of Testing ? TCS3
Suppose there are 100 links in a web page and the number of links will be changing dynamically from time to time. I need code such that every time i had to click on the last link of the web page. Virtusa2
in howmany ways you perfrom batchtesting Lehman-Brothers5
what are the different Frame Works in Quick Test Proffessional testing Wipro2
Syntax for how to call one script from another? and Syntax to call one "Action" in another?  2
Tell me the situations where we will use Data Driven? Ordain-Solutions3
how to select particular value from the combobox in the current page which is entred in the previous page editbox after parameterization? Ordain-Solutions5
What is the difference between Call to Action and Copy Action.?  2
Differenece betwen Project and product ? when company need project or product? Accenture4
If you have given 1000 manual test scripts, what test you will do? and how?  2
While testing .net applications with QTP 9.1 in normal recording mode, QTP records my unintentional mouse clicks and window dragging which I don't want. But I can't stop QTP recording those mouse clicks and window dragging. Can somebody let me know how I can get rid of it, please ! Thanks.  1
QTP is used better in which type of application Web based application or desktop application  2
How to add a runtime parameter to a data sheet?  4
 
For more QTP 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