February 8, 2015
'##################################################################
'Working with Files through FileSystemObject in VB Script for QTP/UFT
'Author: Vikas
'##################################################################
'1.Working with Files in VB Script
'1.1 How to create a text file in QTP/UFTusing VB Script(Visual Basic Script) ?
Dim objFso,objFile
Set objFso=CreateObject("Scripting.FileSystemObject")' Fso object can be used to
operate over both Files and Folder
'CreateTextFile method of File object creates a new text file ,other parameter "True"
is used to overwrite the exisitng file having same name
Set objFile=objFso.CreateTextFile( "D:\Music\myTextFile.txt",true)
'Output :