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 calling sub procedure.

1017


Can anybody post some real time scenario in qtp? please its very urgent.

2229


Define Environment Variable in UFT and its uses?

998


How should I click on the right click menu objects When I trying to add the object properties to the OR.It is showing only Window(Window).Not all the objects of the window. Also while recording I found No script. How to solve this>.

1922


I have qtp 9.5 demo ver,I am not able to record the yahoo broeser.so anyone can tell me what setting i have to do in QTP for yahoo brower recording. why its not recognise the object of yahoo browser????

2667


What are the factors on which script execution time is dependent?

1005


Can we run test with out adding object in object repository? How it is possible?

1016


Is it possible to change the property value at runtime? How it is possible?

965


www.icici.com after this home page wll came, in this page what r the items we r going to test for manual and what the element we r test for QTP... explian clearly with example

1990


Explain features of the latest version of qtp/ uft 12.1?

1005


How we can import data from database?

1150


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?

4443


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

1975


How to handle the exceptions using recovery secnario manager in quicktest professional?

1070


how can we preform retesting(DATA driven test) using function please gine the code for loginpage

2806