How do u retrieve data from a text file into different
variables. i.e.
in a text file named "source" , the data is like :
india,1000,japan,200,china,50,singapore,45050
this is given in the first line of the text file.
in the second line of the text file the dta is:
sun,moon,planet,river,earth,water

if u use "readline" method by using FSO concept u can
retrieve the entire line in to a variable. but i want to
import each field (ex: "india" in one variable, "1000" in
another variable etc..). Apprecitae proper replies.

Answer Posted / vinay.k

ya by FSO u can retrieve a line... make use of regular
expression u will arrive at the solution.for ex using \d u can
retrieve digits and \w will give u word char..

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can U Explain about QTP tool from older version to latest version also its differences?

1513


What is RTM (require ment tracebulity marix) fromate?

1527


What is the difference between byref and byval in qtp?

585


Hi Friends, Would be great if you can provide the Model Question paper, Web site link or any reference s. Thanks & Regards, Byzoor,

1343


How many ways is to parameterize the value?

615






In QA Testing when do you use Loadrunner vs QTP? What are the main differences between those two tools? Explain the purpose with real world scenario examples...In advance thank you!!!

2379


When we r doing data driven test with chkpts, i want to insert formulae in data sheet but i didn't get. How we wil do that plz. explain in detail.

1602


Explain types of descriptive programming?

589


Tell me about your project? please help me how to tell about insurance project

1531


HI I want to know the detials of QTP certifications such as syllabus, study Materil etc. Can any provide me all these details?? my mail ID is krishnuvk@yahoo.com

1534


how can i pass a "cript"as a parameter in to a function

1454


How to check bitmap output value?

625


how we implement share object repository in QTP 9.0 without using quality Centre , Explaine in brief

1536


how can i call function (which has link with excell sheet at a remote location) within another function

1573


Thanks....But can u tell me how i use the QTP for GIS with one Example...

1427