Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



hai there..this is chandu..i have a txt file which containing 1000 lines but at a time i want to r..

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

hai there..this is chandu..i have a txt file which containing 1000 lines but at a time i want to r..

Answer / nanda.d reddy

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

hai there..this is chandu..i have a txt file which containing 1000 lines but at a time i want to r..

Answer / shavali

can u give me code

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

How iteration is related to Test Results in QTP?

1 Answers  


Diff b/w WEB TESTING AND Client server testing?

3 Answers   Ordain Solutions,


After geting the modules where we generate the script ie in qtp or notpad ?

1 Answers  


How can I pass values from one action to another in QTP ?

8 Answers   Ordain Solutions,


In application have 2 list box oppsite list box two edit box is there.so now through using DP how can we select 3 opption in first list box and 2box semect 4 opption.in edit box also we have to write 25 ,28.how can we do this

1 Answers  


what type of framework u r using in ur organization

0 Answers   Wipro,


how to reverse a string with out using string or predefined function,ex:string is " i love india". the output should be like this "i evol aidni"

3 Answers   Aspire,


write a VBscript code to parametrize test script using test data from sqlserver database?

2 Answers   IBM, Polaris,


In smart identification, explain about 1. Base filter properties 2. optional filter properties with examples?

2 Answers   TCS,


How to change the Default synchronization method time and where?

4 Answers  


What is the purpose of loading qtp add-ins?

0 Answers  


We have 10 rows of records in data table, but we have to run 4th, 5th and 6th rows only. How can we handle this scenario in QTP?

5 Answers   Accenture, Banca Sella, Polaris,


Categories