what is a file system object in QTP

Answer Posted / smitha

correct code

const ForReading = 1, ForWriting = 2

Dim fso, MyFile

Set fso = CreateObject("Scripting.FileSystemObject")

Set MyFile = fso.OpenTextFile("D:\New
Folder\somefile.txt",ForWriting, True)

MyFile.WriteLine "Hello world!"

MyFile.WriteLine "The quick brown fox"

MyFile.Close

Set MyFile = fso.OpenTextFile("D:\New
Folder\somefile.txt",ForReading)

ReadLineTextFile = MyFile.ReadLine ' Returns "Hello world!"

MyFile.ReadLine

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you capture tooltip using QTP?

631


What is recovery scenario in qtp?

583


What is TOM in QTP?

1804


what is vmodel?advantages and disadvantages of vmodel?

1614


What is the basic concept of quicktest professional (qtp)?

584






Dis advantages of XML checkpoint ?

1579


Explain data driven framework?

579


we add library file used in test via settings or through "ExecuteFile" command. when we implement framework do we make common library file and load the same for all the test cases execution?

1581


when I was doing the web testing with QTP using with standard checkpoint the Object selection -checkpoint properties dialog box not displaying pages and links hierarchical order. Could you please tell me. thanks

1736


how can i pass a "automation script" as a parameter in a function give me need full suggestion thank inadvance

1426


describe some problems that u had with automating testing tool?

1414


I want two test two agents login for the flight website. Here is the scenario: I want to go through 1-3 rows for one user login and other user login I want to go though 3-5 rows. How would you set this up in qtp. Thank You

1520


In an interview, what r the general questions asked in SQL which is realted to testing ?pls give me anwser to this question?

1441


Hi, my requirement is to make a query in SQL using QTP. And i have to get the results of that query and i have to use those results for future testing. I created a driver but i dont know the code for using this Driver. please help me by providing the solution for y requorement

1647


What is test object?

702