What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Writing files?

Writing files?
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Writing files?
quote:
Originally posted by matty
Also, JScript doesn't define the IO mode constants for the FileSystemObject, so you need to define them yourself:
quote:
Originally posted by ultimatebuster
I looked at it, but I can't seems to write a file

code:
    var ForAppending = 8;

    var fso, theFile;
    fso = new ActiveXObject("Scripting.FileSystemObject");
    theFile = fso.OpenTextFile("data.txt", ForAppending, true);
    theFile.WriteLine("Hello World!");
    theFile.Close();

OP did do that...
06-01-2010 04:33 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Writing files? - by ultimatebuster on 05-21-2010 at 02:46 AM
RE: Writing files? - by Chris4 on 05-21-2010 at 03:22 AM
RE: Writing files? - by matty on 05-21-2010 at 10:24 AM
RE: Writing files? - by ultimatebuster on 05-21-2010 at 08:50 PM
RE: Writing files? - by n3mo on 05-31-2010 at 07:35 PM
RE: Writing files? - by matty on 05-31-2010 at 08:08 PM
RE: Writing files? - by Matti on 06-01-2010 at 03:58 PM
RE: Writing files? - by matty on 06-01-2010 at 04:33 PM
RE: Writing files? - by Matti on 06-01-2010 at 04:39 PM
RE: Writing files? - by matty on 06-01-2010 at 04:40 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On