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
1.How to record ,capture and also script to capture the close buttons. 2.How to record ,capture and also script to capture the options ---File ->save and File ->close in a browser and PDF files. 3.How to compare the Excel sheet values in a report using QTP scripting. 4.How to compare 2 PDf reports using QTP scripts as well reording. 5.How to compare 2 Excel reports using QTP scripts as well reording. 6.How to save a PDF report to a folder and then translate the report to an Excel type of report and compare that Excel Report with an other excel report. Please clarify me
Explain the difference between check point and output value?
What are the different attribute used with regular expression?
i can done the project with QTP in that time i can say how many members in my team size?
What is action split and the purpose of using this in qtp?
what is impact analysis on regression testing?
How to use reporter.report event in qtp ?
What is recovery scenario manager? When you go for recovery scenario manager?
How can you send user defined messages to test report?
How does quicktest professional identifies the object in the application?
desribe a situation where u faced a stressful situation and how did u cope with it
How you create new action in qtp?
What is the use of an object spy tool in qtp?
What is the file extension of the code file in qtp?
how to write xml output check point bu useing descriptive programing .means without useing output check point