In my QTP script I have a word in notepad that ends in a
question mark, for example... "father?" As part of my
script I want to delete the question mark. How do you
delete a character in notepad?
Answer Posted / lak
Const ForReading = 1
'Save notepad file in D: Drive and type Father? then save
Const ForReading = 1
Const ForWriting = 2
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile("D:\Find.txt", ForReading)
strText = objFile.ReadAll
objFile.Close
strNewText = Replace(strText, "?", "")
Set objFile = objFSO.OpenTextFile("D:\Find.txt", ForWriting)
objFile.WriteLine strNewText
objFile.Close
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is a quick test professional?
Explain how you can find the absolute value of the number in qtp?
can anyone tell me from where i can download qtp demo or crack version
Explain step generator in qtp?
Hai anyone please "Explain about Framework in QTP?"
Difference between copy to action and call to action?
Subj: realtime example of Database check point, Can any one please detail on how the Database check point is utilized/implemented in a real time project. I already know how to make one by creating DSN/ODBC and writing the required query manually and other steps...I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thank you in advance
what you mean by artifact,milestone...
Suppose I created one object as virtual object? That object is applicable to that test? Or all the tests?
What is the extension of the recovery scenario file in qtp?
HI, pls help me on this, iam not able to capture getcelldata value in javatable... msgbox javawindow("").javatable("").getcelldata(3,3) but it diaplays empty...
Explain the difference between check point and output value?
What is difference in global and action sheet in qtp?
How the exception handling can be done using quicktest professional?
Hi friends I need to know about jubula automation tool. Is anybody know in bangalore where jubula tanning class is going on do let me know. Its urgent for me to learn that tool please help.