Working with Notepad
Notepad is a basic text editor used to create simple documents. In test automation, Notepad can be used to store script execution status flags, error logs, or any other information relevant to automation. In addition, we can use QuickTest to extract information from the Notepad files created by AUT.
The following are the various methods of the Notepad application object.
- CreateTextFile—It creates a specified file name and returns a TextStream object that can be used to read from or write to the file.
Syntax : Object.CreateTextFile (FileName, bOverwriteFlag)
FileName specifies the file to create
bOverwriteFlag If this is set to True, then existing file will be overwritten.
Example: Write code to create ...