What are the methods of the TextStream object that are used
for reading from a text file?



What are the methods of the TextStream object that are used for reading from a text file?..

Answer / Nitin Yadav

The TextStream object in QTP provides several methods for reading data from a text file. Here are some important ones:

1. ReadLine(): Reads and returns the next line of text as a string.
2. ReadAll(): Reads and returns all the remaining lines in the file as a single string.
3. EOF(): Returns True if the end of the file has been reached; otherwise, it returns False.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

I'm facing this problem while automating my application..its a web based apps.. In my application there are few webtables are displaying in the page.In the different cells there are links and action buttons.Problem is there is link in different web tables corresponding to one name.Hence the properties of the objects(say a link) are same except the x,y co ordinate of the object.So my script is not able to distinguish between the two links present in different cells of web tables with same name.Kindly help on this..

3 Answers  


anyone can explain Diff B/w Actions and Functions

2 Answers  


Can we put more than one action in a single script???? yes or no.....

2 Answers   BirlaSoft,


why text area checkpoints cannot used for web applications

1 Answers  


In QA Testing when do you use Loadrunner vs QTP? What are the main differences between those two tools? Explain the purpose with real world scenario examples...In advance thank you!!!

1 Answers  


what type of run time errors you get while you ar edoing rpg program?

1 Answers  


How to analyzing the checpoint results?

1 Answers  


What are SetToProperty, SetRoProperty, GetToProperty scripting?

2 Answers  


Pls anyone, tell me the script in QTP to find the number of links, and images in a webpage. Verry very urgent. I shall really be very thankful

3 Answers  


Can the user toggle between using Local OR and shared OR for the same action?

1 Answers  


Actually How do we use this Smart Identification Technology during Recording mode.

1 Answers  


how do u handle an object without name using QTP 9.2?

0 Answers   CTS,


Categories