Hi
I am having one folder with set of text files now i want to
read and write that text files data into QTP. Any help
plsss.
Answer Posted / gyanesh ranjan rout
Dim fso,f
Set fso=createobject("scripting.filesystemobject")
Set f=fso.OpenTextFile("c:\text.txt", 2, True)
f.Write("how r u")
Set f=fso.OpenTextFile("c:\text.txt", 1)
readalltextfile= f.ReadAll
msgbox readalltextfile
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
i am having some basic knowledge in c and VB 6.0. i qtp i want to know how to write the codings. by recording it is generating lot of codings. for example i want to test the text box. senerio is text box should not accept alphabets if it accept alphabets we should return fail status if it get number we should return pass status. how to write coding in vb script please help me
What is difference between vbscript and vba?
Which loop is used in case of arrays in the vbscript language?
How to access array data?
Hello friends..... Can any give the methods for Ms-Access, and Mozilla firefox in Automation Object Model in QTP. Please give me currect answers... if you do not understand my question please don't give answers. Thanking you.
Write a Program to add 2 numbers without using operators (+,-) and without using third variable. Note: Use VBScript only Hint: You can use other operators like '/' & '*'(Division & Multiplication)
Description.Create
When does ‘on click of button’ event gets triggered in the vbscript language?
What are the properties of regexp object?
1. How do declare public variable in vb scripts?
Write a test case using Test if the images,a particular test exists,check if the page links match,page response is within a certain range,parameterization of the test,the test should comprise of actions,the test should use a custom function,the test should use global repository
Hellow friends, I am learning QTP,but here problem is VB script. please guide me how to learn VB script w.r.t QTP and if you know any books tell me or if you have any materials or any use full material or any else w.r.t QTP please post me p.p.sekhar
What is loose binding? Why is it not a good practice to use it?
What is sql loader? Explain the files used by sql loader to load file?
A folder is there inside no of textfiles are avilable. How do count the textfiles. Normally folder means we are using subfolder methods but textfiles is not working for subfolder methods and how do get file name also.