Micro Focus QTP (UFT) Forums

Full Version: FSO - not able to open file
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I created a file on my desktop & not able to open it,
Here is code:-

Code:
Set  fso = CreateObject("Scripting.FileSystemObject")

set t  = fso.CreateTextFile("C:\Users\manisha\Desktop\My.txt",True)




Set t = fso.OpenTextFile("C:\Users\manisha\Desktop\My.txt", 1)

The file is not opening, am not even getting any error.

What am I doing wrong