Micro Focus QTP (UFT) Forums
FSO - not able to open file - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: FSO - not able to open file (/Thread-FSO-not-able-to-open-file)



FSO - not able to open file - alpha1 - 07-25-2015

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