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:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: Writing files?
Also, JScript doesn't define the IO mode constants for the FileSystemObject, so you need to define them yourself:
js code:
// In the global scope
var ForAppending = 8;
// Where you need to read the text file
theFile = fso.OpenTextFile(MsgPlus.ScriptFilesPath  + "\\data.txt", ForAppending, true);
or use their numerical value directly:
js code:
theFile = fso.OpenTextFile(MsgPlus.ScriptFilesPath  + "\\data.txt", 8, true);
Source: FileSystemObject.OpenTextFile on DevGuru
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
06-01-2010 03:58 PM
Profile E-Mail PM Web 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