04-29-2008, 03:28 AM
Hi All,
I've creating a text file and then trying to open that file for writing text into it but i'm getting error invalid procedure call.
Thanks.
I've creating a text file and then trying to open that file for writing text into it but i'm getting error invalid procedure call.
Code:
Set fso=createobject("Scripting.FileSystemObject")
Set CFile=fso.createtextfile("c:\test.txt",true)
Set ofile=fso.opentextfile("c:\test.txt",forwriting,true) 'Here i'm getting
'error I've that file on my C drive I've tried Cfile.OpenTextFile
'Combination but that also not working
ofile.write("this is sample test data")&vbcrtl
ofile.write("making sure I've entered")
Thanks.