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 / divakar o

Mr,

You have done almost,

Using FSO Readline, retrieve the line in to variable say A

then apply Split function on variable A and use the Comma(,)
as delimeter to split and get this data into a variable of
type array

then get each of the array element into required variable

need more info...
next time

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain how to write vb script in qtp?when will you write own script?

2254


What are the differences between quicktest professional and winrunner?

956


In qtp, how you can exit for loop?

956


How to capture dynamic values in load runner and how Each of the captured values are to be written to a text file (c:\temp\LoadRunner1.txt)

2171


What is Distributed testing? How does UFT support it?

997


We stored into the objects OR and then write the scripting

1980


When Recovery scenario actually starts while testing the application?

1990


Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?

985


Can anyone help.i need total excelsheet operations,shortcuts in testing environment from starting onwards....

1974


Is it possible to split an action? How?

1063


Hi All, we are using QTP Automation Scripts to test SAP. I recorded QTP Automation Scripts in English-based SAP GUI. Now we have to test a French-based SAP sytem and use the same scripts. The QTP scripts are failing when executed on the French-based SAP System due to Object Recognition Issues. What can we do? Do I re-record the scripts in the French-based SAP system?

2905


Without using gui map editor we can recognize the application in winrunner ?

1014


Define virtual object?

1088


can the activities of test case design be automated?

1843


How to indentify MS-Word objects like Menubar, Toolbar, table/columns/rows/cells etc within Word document, using QTP?

2288