Hi,
Your code is right ,but if you use 2 instead of for writing then it is going to wrokout.
Use these values then you will get it.
Forwriting --- 2
ForAppending--- 8
ForReading .... 1
Regards
Sridhar
Your code is right ,but if you use 2 instead of for writing then it is going to wrokout.
Use these values then you will get it.
Forwriting --- 2
ForAppending--- 8
ForReading .... 1
Code:
Set fso=createobject("Scripting.FileSystemObject")
'Set CFile=fso.createtextfile("c:\test.txt",true)
Set ofile = fso.OpenTextFile("c:\\test.txt", 2, True)
ofile.write "this is sample test data"
ofile.write "making sure I've entered"
ofile.close
Regards
Sridhar