Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is the problem with this code? Pls reply ASAP
#4
Not Solved
Dear Kishore
Here is the code for the same
Code:
Dim obfso, objFile1,objFile2
Set objFSO=CreateObject("Scripting.FileSystemObject")
Set objFile1=objFSO.CreateTextFile("C:\testfile.txt", true)
objfile1.close

Const ForWriting=2
Set objFSO=CreateObject("Scripting.FileSystemObject")
set objFile2=objFSO.OpenTextFile("C:\testfile.txt", ForWriting, True)

objFile2.write str


I think it works
let me know if u need further assistance.
Reply


Messages In This Thread
RE: What is the problem with this code? Pls reply ASAP - by seetu - 12-09-2008, 01:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to solve / record SAP (Transaction code PA40) Infotypes sequence problem in QTP kamal262007 0 2,299 02-04-2013, 11:25 AM
Last Post: kamal262007
  systemUtil.run script is not generating while recording in qtp 9.5..pls help me senthil.kumar 0 2,681 01-24-2013, 01:22 PM
Last Post: senthil.kumar
  QTP gets crashed on start up or on save a script. Pls advise pandeche 2 3,508 04-16-2012, 12:14 PM
Last Post: leema
  Please suggest some books to learn VBScript basics for qtp. Pls share if u have any. GSuba 0 4,078 04-08-2011, 12:55 AM
Last Post: GSuba
  Does any has .ISO file/package for QTP 9.0 or QTP 10 or QTP 11 ..Email pls? amipraj1 1 3,558 04-06-2011, 09:52 AM
Last Post: manishbhalshankar

Forum Jump:


Users browsing this thread: 1 Guest(s)