Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error while opening text file through QTP
#6
Solved: 10 Years, 9 Months ago
Please try this code:
Code:
create for reading=1,create for writing=2,create for append mode=8.
Dim Fso, Myfile.
Set Fso=createobject("scripting.Filesystemobject")
Set Myfile=Fso.opentextFile("E:\project\file.txt",for writing,True)
Myfile.write"write value" & "result"
Myfile.close
Reply


Messages In This Thread
RE: Error while opening text file through QTP - by sandya - 06-25-2012, 01:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to read a text file using FSO from bottom to up order?? vallalarasu.p 0 2,388 10-13-2014, 11:14 AM
Last Post: vallalarasu.p
  how to create text file swayam 1 2,686 05-29-2014, 01:25 PM
Last Post: basanth27
  Retrieving Text from a PDF file smartkarthi 2 4,425 08-22-2013, 11:44 AM
Last Post: smartkarthi
  Cannot attach the text file to email arpan 2 3,282 07-19-2013, 12:13 AM
Last Post: arpan
  Read text from text file and save it into a variable in qtp arpan 3 12,129 06-19-2013, 08:34 PM
Last Post: arpan

Forum Jump:


Users browsing this thread: 1 Guest(s)