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...

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

How to open a new test using quicktest professional (qtp)?

989


how to test Web application using QTP software

2021


How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?

1252


What is debugging? How you debug your script?

1190


Suppose I want fail that check point? How can you do that?

1098


Is QTP Supports SWT applications? If yes, can you write a sample script for opening a new package in eclipse.

3504


what function you write to do database testing with the help of qtp?

1827


Explain different recording modes?

1030


Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.

2580


Sql questions to find second max salary and how to use joins

1529


What are the types of object repositories? Which one is you using?

1191


Explain the concept of object repository and how quicktest professional recognises objects?

1017


Hi could some one explan what is the use of the function Defination generator, And how to use the function defination generator.. Explan with the example..

1807


hou can we use vb script in qtp could u tell me breafly

2198


Hi Friends, Im planning to do certifcation in mercury Automation Tool QTP.But I Didnt get any clear details regarding course syllabus, fees, where to approach, and which certification would be useful for the experienced testers? can any one send me the details?

1950