used OpenAsTextStream(2, TristateUseDefault) 'forwriting default value is 2 and forreading default value is 1.
Now code will look like
But i want to try opentextfile command. Plz help on that.
Thanks
Now code will look like
Code:
set fso=createobject("scripting.FileSystemObject")
set f= fso.getfile(c:\test.txt")
set ofile=f.OpenAsTextStream(2, TristateUseDefault)
ofile.write "this is test" & Vbcrlf
But i want to try opentextfile command. Plz help on that.
Thanks