write a vb script to open a text file and write into it
Answers were Sorted based on User's Feedback
Answer / mudaseer
dim vfso
set vfso=createobject("scripting.filesystemobject")
set vf=vfso.opentextfile("C:\hello.txt",2)
vf.write("howruthere")
'here 2 is for write and 8 is for append
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / sojan davis- infosys
Const ForWriting = 2,
Dim fso, fileObj
Set fso = CreateObject("Scripting.FileSystemObject")
Set fileObj = fso.OpenTextFile(strConfigFile, ForWriting,
True)
fileObj.WriteLine("Hi")
fileObj.Close
Set fileObj=Nothing
Set fso=Nothing
Is This Answer Correct ? | 2 Yes | 0 No |
VBscript for QTP,best tutorial?
Explain the arrays in vb script?
Does VB/Win make standalone .EXE files?
What is the difference between vbscript and vba?
i created script for login in QTP,i parametirized that using global sheet,problem i am facing is first i want to login with first values provided in excelsheet and want to perform some operation,second time if call same action it should login with second values in excelsheet
Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?
How many types of procedures are available in the vbscript language?
What is the event handling in vbscript?
int a=4857 i need output as 7584.without using any inbuild function?
Write a VB Script to count blank Lines in a notepad
write a script to count no drives in file systems in qtp?
a function that takes an integer array as an argument and returns the largest value in the array. Use the function in a program