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..
Answers were Sorted based on User's Feedback
Answer / king
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 |
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 |
Hi,The question is write a script for the following scenario. scenario:in a job portal i entered QTP 3yrs testing then click search button.then it displays results like Test lead bangalore (here is a checkbox). Test lead hyderabad check box so on... question is if test lead position in bangalore then checkbox shld be enabled automatically..
4 Answers Thatavarti Technologies,
hi i have one doubt is there any companies are taking correspandence courses plz leme know urjent
This is Ajay i have few douts if anybody know pls give me reply. 1. i have opend 2 gmails i am working with 1 gmail i want to close other gmail by usig script. 2.i have 10 links in a page all of them have same properties& names i want to click on 5link by using script. 3.i have one combobox in that i want to see all the citynames in the combobox and i have to check weather hyderabad is present or not. 4. size of objectrepository. 5.what r problems we get during writing the script. 6.is it possible to compare to excel sheets in qtp if possible wht is the script. 7.example for lowlevelrecording
how qtp handles customised object
what is qtp automation framework, what is the purpose of the framework and which folders included in this framework pls tell me with brief description
Explain data driven framework?
How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?
What is object repository?
What is meant by Environmental variables?2 types r there know…can u pls explain clearly?
How to create scenario selector
How to display the first 3 letters in these "ABCDEFGH" using qtp script?
How can we disable popup blocker? (I think it means when we get a pop up messge(its error) how we wil disable that one with out interrupting normal process)