Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FSO Error
#1
Solved: 10 Years, 11 Months ago
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.

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.
Reply


Messages In This Thread
FSO Error - by newqtp - 04-29-2008, 03:28 AM
RE: FSO Error - by newqtp - 04-29-2008, 04:01 AM
RE: FSO Error - by somisays - 04-29-2008, 05:08 PM
RE: FSO Error - by newqtp - 04-29-2008, 11:26 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Reading an Existing File using FSO prabhu656656 1 1,894 09-10-2009, 12:18 AM
Last Post: sreekanth chilam

Forum Jump:


Users browsing this thread: 1 Guest(s)