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


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
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: 2 Guest(s)